[ https://issues.apache.org/jira/browse/CASSANDRA-4174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257795#comment-13257795 ]
Yuki Morishita edited comment on CASSANDRA-4174 at 4/19/12 8:45 PM: -------------------------------------------------------------------- bq. Are you proposing we issue a single compaction submission when streaming is done, instead? Yes. Patch attached for 1.0 branch. I'm not sure if submitting compaction in background is necessary at all. was (Author: yukim): Patch attached for 1.0 branch. I'm not sure if submitting compaction in background is necessary at all. > Unnecessary compaction happens when streaming > --------------------------------------------- > > Key: CASSANDRA-4174 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4174 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 1.0.0 > Reporter: Yuki Morishita > Assignee: Yuki Morishita > Priority: Minor > Fix For: 1.0.10 > > Attachments: 4174-1.0.txt > > > When streaming session finishes, streamed sstabls are added to CFS one by one > using > ColumnFamilyStore#addSSTable(https://github.com/apache/cassandra/blob/cassandra-1.0.9/src/java/org/apache/cassandra/streaming/StreamInSession.java#L141). > This method submits compaction in > background(https://github.com/apache/cassandra/blob/cassandra-1.0.9/src/java/org/apache/cassandra/db/ColumnFamilyStore.java#L946), > and end up with unnecessary compaction tasks behind. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira