You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "belliottsmith (via GitHub)" <gi...@apache.org> on 2023/08/07 22:20:19 UTC
[GitHub] [cassandra-accord] belliottsmith commented on a diff in pull request #54: Eviction purger
belliottsmith commented on code in PR #54:
URL: https://github.com/apache/cassandra-accord/pull/54#discussion_r1286427318
##########
accord-core/src/main/java/accord/local/CommandStores.java:
##########
@@ -351,6 +350,7 @@ private synchronized TopologyUpdate updateTopology(Node node, Snapshot prev, Top
Ranges removeRanges = subtracted.slice(current, Minimal);
if (!removeRanges.isEmpty())
{
+ // TODO (required): This is updating the a non-volatile field in the previous Snapshot, why modify it at all, even with volatile the guaranteed visibility is weak even with mutual exclusion
Review Comment:
I'm not sure what you mean? This is the snapshot we're updating, inside the snapshot_holder. This is safe published because all of the fields are final.
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org