You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2023/11/28 08:42:46 UTC
(cassandra) 02/04: Test failure: org.apache.cassandra.tools.JMXCompatabilityTest
This is an automated email from the ASF dual-hosted git repository.
marcuse pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit f6ea362d711ac8e06f254b18ba6fcf99e7e2c8cf
Author: Marcus Eriksson <ma...@apache.org>
AuthorDate: Mon Nov 27 12:54:31 2023 +0100
Test failure: org.apache.cassandra.tools.JMXCompatabilityTest
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19060
---
src/java/org/apache/cassandra/service/StorageService.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index 093b1da6d8..865ecb14b2 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org