Test failure: org.apache.cassandra.tools.JMXCompatabilityTest

Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19060
This commit is contained in:
Marcus Eriksson 2023-11-27 12:54:31 +01:00
parent 31a3ff1768
commit f6ea362d71
1 changed files with 10 additions and 1 deletions

View File

@ -792,7 +792,16 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
if (ClusterMetadataService.state() == ClusterMetadataService.State.REMOTE)
Gossiper.instance.triggerRoundWithCMS();
// Has to be called after the host id has potentially changed
try
{
CacheService.instance.counterCache.loadSavedAsync().get();
}
catch (Throwable t)
{
JVMStabilityInspector.inspectThrowable(t);
logger.warn("Error loading counter cache", t);
}
Gossiper.waitToSettle();
NodeId self;