You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "jaydeepkumar1984 (via GitHub)" <gi...@apache.org> on 2024/10/26 19:50:36 UTC
[PR] Compares the Gossip endpointState and TokenMetadata cache [cassandra]
jaydeepkumar1984 opened a new pull request, #3635:
URL: https://github.com/apache/cassandra/pull/3635
```
Cassandra keeps token-ownership in two separate caches. 1) Gossip endpointState 2) TokenMetadata cache. These two caches could go out of sync, and if they go, it creates a catastrophic impact on workloads. Currently, no mechanism in Cassandra exist that detects and fixes these two caches. This PR improves these two caches.
Details: As we know, Cassandra exchanges important topology and token-ownership-related details over Gossip. Cassandra internally maintains the following two separate caches that have the token ownership information maintained: 1) Gossip endpointState 2) TokenMetadata cache. The first Gossip cache is updated on a node, followed by the storage service cache. In the hot path, ownership is calculated from the storage service cache. Since two separate caches maintain the same information, then inconsistencies are bound to happen. It could be very well feasible that the Gossip cache has up-to-date ownership of the Cassandra cluster, but the service cache does not, and in that scenario, inconsistent data will be served to the user.
```
**Long-term solution**
We are going with the long-term transactional metadata (https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-21) to handle such inconsistencies, and that’s the right thing to do.
**Short-term solution**
But CEP-21 might take some time, and until then, there is a need to detect such inconsistencies. Hence this PR extends the support for a new _nodetool_ command that does the comparison.
The [Cassandra Jira](https://issues.apache.org/jira/browse/CASSANDRA-18758)
--
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
Re: [PR] Compares the Gossip endpointState and TokenMetadata cache [cassandra]
Posted by "michaelsembwever (via GitHub)" <gi...@apache.org>.
michaelsembwever closed pull request #3635: Compares the Gossip endpointState and TokenMetadata cache
URL: https://github.com/apache/cassandra/pull/3635
--
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
Re: [PR] Compares the Gossip endpointState and TokenMetadata cache [cassandra]
Posted by "michaelsembwever (via GitHub)" <gi...@apache.org>.
michaelsembwever commented on PR #3635:
URL: https://github.com/apache/cassandra/pull/3635#issuecomment-2458246627
committed as https://github.com/apache/cassandra/commit/34bed3df492e3f97d9f9c7c073de16f8d0eed485
--
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