jacek-lewandowski commented on code in PR #1804:
URL: https://github.com/apache/cassandra/pull/1804#discussion_r960521100
##########
src/java/org/apache/cassandra/schema/Schema.java:
##########
@@ -611,18 +613,42 @@ public SchemaTransformationResult
transform(SchemaTransformation transformation,
* Clear all locally stored schema information and fetch schema from
another node.
* Called by user (via JMX) who wants to get rid of schema disagreement.
*/
- public synchronized void resetLocalSchema()
Review Comment:
Most general answer to that question is - because we are waiting in this
method. The method simply mark a schema that is should be refreshed and wait
until it happens. However, the schema would be unable to refresh if we hold a
lock because we no changes could be applied then. Note that, the changes are
applied from the MigrationCoordinator thread, usually a different to the called
thread.
--
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]