You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2022/09/09 10:00:51 UTC

[GitHub] [cassandra] jacek-lewandowski commented on a diff in pull request #1850: Cassandra 17819 4.0

jacek-lewandowski commented on code in PR #1850:
URL: https://github.com/apache/cassandra/pull/1850#discussion_r966869661


##########
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:
   Actually the behavior is pretty similar



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