[ 
https://issues.apache.org/jira/browse/CASSANDRA-21829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Caleb Rackliffe updated CASSANDRA-21829:
----------------------------------------
    Reviewers: Caleb Rackliffe, Caleb Rackliffe
       Status: Review In Progress  (was: Patch Available)

> DirectReadAheadBuffer throws CorruptSSTableException instead of 
> CorruptBlockException on a short read
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21829
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21829
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Local/SSTable
>            Reporter: Francisco Guerrero
>            Assignee: Francisco Guerrero
>            Priority: Normal
>
> In CASSANDRA-21671, {{ReadAheadBuffer#loadBlock}} now throws a 
> {{CorruptBlockException}} on a short read. This bubbles up to 
> {{CompressedChunkReader#readChunk}}, which will then reset the output buffer 
> preventing stale data from being visible, and rethrow it as a 
> {{CorruptSSTableException}} with the block position as the cause.
> We missed updating the {{DirectReadAheadBuffer#loadBlock}} which doesn't 
> throw {{CorruptBlockException}} and instead still throws 
> {{CorruptSSTableException}}. We just need to update this to match with the 
> change in CASSANDRA-21671.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to