cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-565) BufferedRandomAccessFile.read doesn't always do full reads
Date Thu, 19 Nov 2009 21:31:39 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780274#action_12780274
] 

Jonathan Ellis commented on CASSANDRA-565:
------------------------------------------

since the contract for RandomAccessFile that BRAF is patterned on is that read() may return
less bytes even if it is not EOF, IMO we should probably make the read-with-retry loop a separate
method (readFully?)

> BufferedRandomAccessFile.read doesn't always do full reads
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-565
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-565
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>             Fix For: 0.5
>
>         Attachments: issue565.patchev1
>
>
> BufferedRandomAccessFile.read may read fewer bytes than required, even when EOF is not
reached. This breaks commit log recovery, which assumes that when a read returns less than
required, the EOF is reached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message