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

Branimir Lambov commented on CASSANDRA-14649:
---------------------------------------------

Right, I messed it up too... I can't see any problems with {{length}}, though.

Updated patch to address the other comments and also added size checking to the 
test.

> Index summaries fail when their size gets > 2G and use more space than 
> necessary
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14649
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14649
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Branimir Lambov
>            Assignee: Branimir Lambov
>            Priority: Major
>
> After building a summary, {{IndexSummaryBuilder}} tries to trim the memory 
> writers by calling {{SafeMemoryWriter.setCapacity(capacity())}}. Instead of 
> trimming, this ends up allocating at least as much extra space and failingĀ 
> the {{Buffer.position()}} call when the size is greater than 
> {{Integer.MAX_VALUE}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to