Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,16 @@ protected static void initCluster(Version version) throws IOException

FeaturesVersionSupportTester.version = version;
cluster = init(Cluster.build(2)
.withInstanceInitializer((cl, n) -> BB.install(cl, n, version))
.withInstanceInitializer((cl, n) -> {
// Disable synthetic score to ensure compatibility between ED and older versions.
// ED enables it by default but older versions don't support it.
// Note: In 5.0, Ordering.useSyntheticScore() uses CassandraRelevantProperties
// which caches values at class loading time, so we must set this property before
// the classes are loaded. In the main branch, Ordering uses System.getProperty() directly,
// which is why this workaround isn't needed there.
System.setProperty("cassandra.sai.ann_use_synthetic_score", "false");
BB.install(cl, n, version);
})
.withConfig(config -> config.with(GOSSIP).with(NETWORK))
.start(), 1);

Expand Down