cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Yaskevich (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2879) Make SSTableWriter.append(...) methods seekless.
Date Tue, 12 Jul 2011 18:13:00 GMT

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

Pavel Yaskevich commented on CASSANDRA-2879:
--------------------------------------------

I've double checked CF/columns and ColumnIndexer serializedSize() methods before adding -1
to BF, because size of RowIndex.serializedSize() + cf.serializedSize() was always generating
one byte bigger size than actual data size computed by endPosition - (sizePosition + 8).

> Make SSTableWriter.append(...) methods seekless.
> ------------------------------------------------
>
>                 Key: CASSANDRA-2879
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2879
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Pavel Yaskevich
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0
>
>         Attachments: CASSANDRA-2879.patch
>
>
> as we already have a CF.serializedSize() method we don't need to reserve a place to store
data size when we write data to SSTable. Compaction should be seekless too because we calculate
data size before we write actual content.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message