Mmuzaf commented on code in PR #3147:
URL: https://github.com/apache/cassandra/pull/3147#discussion_r1511772093
##########
src/java/org/apache/cassandra/dht/BootStrapper.java:
##########
@@ -72,6 +90,33 @@ public BootStrapper(InetAddressAndPort address,
this.strictMovements = strictMovements;
}
+ public void init()
+ {
+ addProgressListener((tag, event) -> {
Review Comment:
We can have only one bootstrap process running, there is a check for that:
```
BootStrapper bootstrapper = new
BootStrapper(getBroadcastAddressAndPort(), metadata, movements,
strictMovements);
boolean res = ongoingBootstrap.compareAndSet(null, bootstrapper);
if (!res)
throw new IllegalStateException("Bootstrap can be started
exactly once, but seems to have already started: " + bootstrapper);
```
Anyway, I've moved the `init` to the constructor, so it should be clearer
now.
--
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]