Fix restartWithEpochChanges test; make CMS nodes first gossip with CMS nodes

Patch by Alex Petrov; reviewed by Sam Tunnicliffe for CASSANDRA-20123
This commit is contained in:
Alex Petrov 2024-11-29 16:39:08 +01:00 committed by David Capwell
parent bad9805b7a
commit 4c0f9198de
1 changed files with 2 additions and 2 deletions

View File

@ -814,8 +814,8 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
Gossiper.instance.addLocalApplicationState(ApplicationState.SSTABLE_VERSIONS,
valueFactory.sstableVersions(sstablesTracker.versionsInUse()));
if (ClusterMetadataService.state() == ClusterMetadataService.State.REMOTE)
Gossiper.instance.triggerRoundWithCMS();
Gossiper.instance.triggerRoundWithCMS();
// Has to be called after the host id has potentially changed
try
{