Re: upgrading from 2.x TWCS to 3.x TWCS

2019-09-27 Thread Jeff Jirsa
I suspect this will work, yes (Sorry I can't make a proper upgrade path, sorta out of my hands) On Fri, Sep 27, 2019 at 11:19 AM Carl Mueller wrote: > Oops, I think the getName() is an important thing: > > package com.jeffjirsa.cassandra.db.compaction; > > import

Re: upgrading from 2.x TWCS to 3.x TWCS

2019-09-27 Thread Carl Mueller
Oops, I think the getName() is an important thing: package com.jeffjirsa.cassandra.db.compaction; import org.apache.cassandra.db.ColumnFamilyStore; import java.util.Map; public class TimeWindowCompactionStrategy extends org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy {

Re: upgrading from 2.x TWCS to 3.x TWCS

2019-09-27 Thread Carl Mueller
Or can we just do this safely in a side jar? package com.jeffjirsa.cassandra.db.compaction; import org.apache.cassandra.db.ColumnFamilyStore; import org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy; import java.util.Map; public class TimeWindowCompactionStrategy extends

Re: upgrading from 2.x TWCS to 3.x TWCS

2019-09-27 Thread Carl Mueller
So IF that delegate class would work: 1) create jar with the delegate class 2) deploy jar along with upgrade on node 3) once all nodes are upgraded, issue ALTER to change to the org.apache.cassandra TWCS class. will that trigger full recompaction? On Fri, Sep 27, 2019 at 12:25 PM Carl Mueller

Re: upgrading from 2.x TWCS to 3.x TWCS

2019-09-27 Thread Carl Mueller
For example (delegating all public methods from AbstractCompactionStrategy and some from TimeWindowCompactionStrategy EXCEPT getName() ) package com.jeffjirsa.cassandra.db.compaction; public class TimeWindowCompactionStrategy extends AbstractCompactionStrategy {

Re: upgrading from 2.x TWCS to 3.x TWCS

2019-09-27 Thread Carl Mueller
Is this still the official answer on TWCS 2.X --> 3.X upgrades? Pull the code and recompile as a different package? Can I just declare the necessary class and package namespace and delegate to the actual main-codebase class? On Mon, Nov 5, 2018 at 1:41 AM Oleksandr Shulgin <