Re: Pointers on writing your own Compaction Strategy

2014-09-07 Thread Tupshin Harper
In addition to what Markus said, take a look at the latest patch in https://issues.apache.org/jira/browse/CASSANDRA-6602 for a relevant example. -Tupshin On Sep 4, 2014 2:28 PM, Marcus Eriksson krum...@gmail.com wrote: 1. create a class that extends AbstractCompactionStrategy (i would keep it

Pointers on writing your own Compaction Strategy

2014-09-04 Thread Ghosh, Mainak
Hello, I am planning to write a new compaction strategy and I was hoping if anyone can point me to the relevant functions and how they are related in the call hierarchy. Thanks for the help. Regards, Mainak.

Re: Pointers on writing your own Compaction Strategy

2014-09-04 Thread Marcus Eriksson
1. create a class that extends AbstractCompactionStrategy (i would keep it in-tree while developing to avoid having classpath issues etc) 2. Implement the abstract methods - getNextBackgroundTask - called when cassandra wants to do a new minor (background) compaction - return a CompactionTask