ekaterinadimitrova2 commented on code in PR #1850:
URL: https://github.com/apache/cassandra/pull/1850#discussion_r967094701


##########
src/java/org/apache/cassandra/schema/MigrationManager.java:
##########
@@ -260,18 +260,7 @@ public static void resetLocalSchema()
 
         Schema.instance.clear();
 
-        Set<InetAddressAndPort> liveEndpoints = 
Gossiper.instance.getLiveMembers();
-        liveEndpoints.remove(FBUtilities.getBroadcastAddressAndPort());
-
-        // force migration if there are nodes around
-        for (InetAddressAndPort node : liveEndpoints)
-        {
-            EndpointState state = 
Gossiper.instance.getEndpointStateForEndpoint(node);
-            Future<Void> pull = 
MigrationCoordinator.instance.reportEndpointVersion(node, state);
-            if (pull != null)
-                FBUtilities.waitOnFuture(pull);
-        }
-
+        MigrationCoordinator.instance.reset();

Review Comment:
   `MigrationCoordinator#reset()` was doing only `versionInfo.clear();` before 
this patch.
   Now further to clearing it does also - `reportCurrentSchemaVersionOnEndpoint`



-- 
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]

Reply via email to