aweisberg commented on code in PR #3475:
URL: https://github.com/apache/cassandra/pull/3475#discussion_r1717267551
##########
src/java/org/apache/cassandra/tools/NodeProbe.java:
##########
@@ -507,18 +509,28 @@ public String getKeyspaceReplicationInfo(String
keyspaceName)
public void repairAsync(final PrintStream out, final String keyspace,
Map<String, String> options) throws IOException
{
- blockOnAsyncRepair(out, keyspace, ssProxy.repairAsync(keyspace,
options));
+ blockOnAsyncRepairs(out, Collections.singleton(new RepairCmd(keyspace)
+ {
+ @Override
+ public Integer start()
+ {
+ return ssProxy.repairAsync(keyspace, options);
+ }
+ }));
}
- public void blockOnAsyncRepair(final PrintStream out, final String
keyspace, Integer cmd) throws IOException
+ public void blockOnAsyncRepairs(final PrintStream out,
Collection<RepairCmd> cmds) throws IOException
Review Comment:
This doesn't just block on them, it also starts them as well?
--
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]