You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2025/02/06 19:23:34 UTC
(cassandra-accord) branch CASSANDRA-20302 created (now 5f7b8710)
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a change to branch CASSANDRA-20302
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
at 5f7b8710 CASSANDRA-20302: Expose epoch ready state as a vtable for operators to inspect things
This branch includes the following new commits:
new 5f7b8710 CASSANDRA-20302: Expose epoch ready state as a vtable for operators to inspect things
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org
(cassandra-accord) 01/01: CASSANDRA-20302: Expose epoch ready state as a vtable for operators to inspect things
Posted by dc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch CASSANDRA-20302
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
commit 5f7b8710aff81fbab745700932b5742d8f60ade7
Author: David Capwell <dc...@apache.org>
AuthorDate: Thu Feb 6 11:23:24 2025 -0800
CASSANDRA-20302: Expose epoch ready state as a vtable for operators to inspect things
---
accord-core/src/main/java/accord/topology/TopologyManager.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/accord-core/src/main/java/accord/topology/TopologyManager.java b/accord-core/src/main/java/accord/topology/TopologyManager.java
index 76347357..e6241f7a 100644
--- a/accord-core/src/main/java/accord/topology/TopologyManager.java
+++ b/accord-core/src/main/java/accord/topology/TopologyManager.java
@@ -91,7 +91,7 @@ public class TopologyManager
SUCCESS.future.trySuccess(null);
}
- static class EpochState
+ public static class EpochState
{
final Id self;
private final Topology global;
@@ -120,6 +120,11 @@ public class TopologyManager
this.synced = addedRanges;
}
+ public EpochReady ready()
+ {
+ return ready;
+ }
+
public boolean hasReachedQuorum()
{
return syncTracker == null || syncTracker.hasReachedQuorum();
@@ -636,7 +641,7 @@ public class TopologyManager
}
@VisibleForTesting
- EpochState getEpochStateUnsafe(long epoch)
+ public EpochState getEpochStateUnsafe(long epoch)
{
return epochs.get(epoch);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org