adelapena commented on a change in pull request #896:
URL: https://github.com/apache/cassandra/pull/896#discussion_r580447988



##########
File path: src/java/org/apache/cassandra/repair/RepairRunnable.java
##########
@@ -447,13 +448,14 @@ public ListenableFuture apply(List<RepairSessionResult> 
results)
                 return Futures.immediateFuture(null);
             }
         }, MoreExecutors.directExecutor());
-        Futures.addCallback(repairResult, new 
RepairCompleteCallback(parentSession, successfulRanges, startTime, traceState, 
hasFailure, executor), MoreExecutors.directExecutor());
+        Futures.addCallback(repairResult, new 
RepairCompleteCallback(parentSession, successfulRanges, preparedEndpoints, 
startTime, traceState, hasFailure, executor), MoreExecutors.directExecutor());

Review comment:
       These are also getting quite long, perhaps we could break them:
   ```java
   Futures.addCallback(repairResult,
                       new RepairCompleteCallback(parentSession, 
successfulRanges, preparedEndpoints, startTime, traceState, hasFailure, 
executor),
                       MoreExecutors.directExecutor());
   ```

##########
File path: src/java/org/apache/cassandra/repair/RepairRunnable.java
##########
@@ -393,22 +393,23 @@ private void repair(String[] cfnames, NeighborsAndRanges 
neighborsAndRanges)
     {
         if (options.isPreview())
         {
-            previewRepair(parentSession, creationTimeMillis, 
neighborsAndRanges.filterCommonRanges(keyspace, cfnames), cfnames);
+            previewRepair(parentSession, creationTimeMillis, 
neighborsAndRanges.filterCommonRanges(keyspace, cfnames), 
neighborsAndRanges.participants, cfnames);

Review comment:
       Nit: maybe we could break this line, and also the two analogous lines 
after:
   ```java
   previewRepair(parentSession,
                 creationTimeMillis,
                 neighborsAndRanges.filterCommonRanges(keyspace, cfnames),
                 neighborsAndRanges.participants,
                 cfnames);
   ```




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

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