Skip to content

add CompactionStrategy options for Cassandra storage configuration#1156

Closed
pluradj wants to merge 1 commit intothinkaurelius:titan09from
pluradj:compaction_strategy
Closed

add CompactionStrategy options for Cassandra storage configuration#1156
pluradj wants to merge 1 commit intothinkaurelius:titan09from
pluradj:compaction_strategy

Conversation

@pluradj
Copy link
Contributor

@pluradj pluradj commented Sep 23, 2015

Allows org.apache.cassandra.db.compaction.LeveledCompactionStrategy to be chosen when the Titan tables are created.

@pluradj
Copy link
Contributor Author

pluradj commented Sep 24, 2015

dalaro added a commit that referenced this pull request Dec 17, 2015
This changes the default behavior of #1156.

Instead of hardcoding SizeTieredCompactionStrategy as the default and
applying it in the absence of an explicit user override, this commit
removes the default value for COMPACTION_STRATEGY.  It also updates
the three use sites to check whether the config contains
COMPACTION_STRATEGY before attempting to read the option's value.

Similarly, if COMPACTION_OPTIONS was not set, or if it was set to an
empty map, then its use sites will not call the associated builder
method, allowing the implementation to use whatever default it might
have (probably empty anyway).
@dalaro
Copy link
Member

dalaro commented Dec 17, 2015

I've merged this into titan11. After merging, I tweaked its default behavior in d647a69. I was concerned about how the PR hardcoded SizeTiered as the default compaction strategy in the absence of a user-specified override. My commit makes Titan behaves as it did before this PR, remaining silent on the strategy in the absence of a user-specified option, implicitly defaulting to whatever C* or the client-side driver wants to use.

@dalaro dalaro closed this Dec 17, 2015
@dalaro dalaro added this to the Titan1.1 milestone Dec 17, 2015
@dalaro dalaro self-assigned this Dec 17, 2015
@pluradj
Copy link
Contributor Author

pluradj commented Dec 17, 2015

Makes sense. Thanks Dan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants