dcapwell commented on code in PR #87:
URL: https://github.com/apache/cassandra-accord/pull/87#discussion_r1589747479
##########
accord-core/src/test/java/accord/impl/MessageListener.java:
##########
@@ -117,6 +127,18 @@ public void onClientAction(ClientAction action, Node.Id
from, TxnId id, Object m
}
}
+ private Topology previous = null;
+
+ @Override
+ public void onTopologyChange(Topology topology)
+ {
+ if (previous != null)
+ {
+ logger.debug("Topology Change {} -> {}: {}", previous.epoch(),
topology.epoch(), TopologyUtils.diff(previous, topology));
Review Comment:
honestly I can drop the diff... I mostly did it to confirm where things
happened but personally found `ListStore.history` easier as it shows the local
history (including bootstrap) for a single key... I did find the epoch
notification helpful though to know when this changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]