Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use cluster default for compaction strategy #393

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Conversation

agavra
Copy link
Contributor

@agavra agavra commented Nov 19, 2024

There was a regression in #371 where we started specifying LCS as the default compaction strategy. This change uses the cluster default instead, so that it will use ICS in scylla enterprise clusters (which ScyllaDB cloud are by default).

We can't test this easily since the scyllaDB public docker images don't have ICS, but I verified manually that this works.

@agavra agavra requested a review from ableegoldman November 19, 2024 17:57
import dev.responsive.kafka.internal.db.partitioning.TablePartitioner;
import dev.responsive.kafka.internal.stores.TtlResolver;
import java.util.Optional;

public class DefaultTableSpec implements RemoteTableSpec {

private static final CompactionStrategy<?> DEFAULT_CASSANDRA_COMPACTION_STRATEGY =
new DefaultLeveledCompactionStrategy();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I chose this was because I saw it was used as the default in a few places (maybe not everywhere like I thought) -- we should make sure we keep this in those places right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly I don't remember off the top of my head but I think if you do a search for the DefaultLeveledCompactionStrategy in my first TTL PR it should show where it used to be used

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lmk if you want my help in finding that)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ICS is generally a good general starting point, and since we don't have prod deployments of other compaction strategies I'm keen to just keep the default.

@agavra agavra merged commit 7401bb4 into main Nov 19, 2024
1 check passed
@agavra agavra deleted the fix_compaction_strategy branch November 19, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants