DomGarguilo commented on code in PR #3980:
URL: https://github.com/apache/accumulo/pull/3980#discussion_r1442146755


##########
core/src/main/java/org/apache/accumulo/core/util/Merge.java:
##########
@@ -256,7 +257,7 @@ protected Iterator<Size> getSizeIterator(AccumuloClient 
client, String tablename
       return tablets.stream().map(tm -> {
         long size = 
tm.getFilesMap().values().stream().mapToLong(DataFileValue::getSize).sum();
         return new Size(tm.getExtent(), size);
-      }).iterator();
+      }).collect(Collectors.toList()).iterator();

Review Comment:
   I did this in e4c3dad but it broke MergeTest because the method removed, 
`getSizeIterator`, was being overridden by the test. Looking into a fix for 
that now but your suggestion should be implemented.



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

Reply via email to