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

Yuki Morishita updated CASSANDRA-4807:
--------------------------------------

    Attachment: 4807-1.1.txt

Alexey, Omid,

Thank you both for providing information.
I think this regression comes from CASSANDRA-4587.
compactionstats' bytes compacted comes from 
LeveledScanner#getCurrentPosition(https://github.com/apache/cassandra/blob/cassandra-1.1.6/src/java/org/apache/cassandra/db/compaction/LeveledCompactionStrategy.java#L261)
 when using LCS.

We need to reset currentScanner to null after scanning through to the end, 
otherwise we would add twice for last scanned SSTable.

Patch attached as well as unit test for this.
(github: https://github.com/yukim/cassandra/tree/4807)
                
> Compaction progress counts more than 100%
> -----------------------------------------
>
>                 Key: CASSANDRA-4807
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4807
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.6
>            Reporter: Omid Aladini
>            Assignee: Yuki Morishita
>            Priority: Minor
>         Attachments: 4807-1.1.txt
>
>
> 'nodetool compactionstats' compaction progress counts more than 100%:
> {code}
> pending tasks: 74
>           compaction type        keyspace   column family bytes compacted     
> bytes total  progress
>                Validation        KSP        CF1           56192578305         
> 84652768917    66.38%
>                Compaction        KSP        CF2           162018591           
> 119913592     135.11%
> {code}
> Hadn't experienced this before 1.1.3. Is it due to changes in 1.1.4-1.1.6 ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to