dlmarion commented on code in PR #2636:
URL: https://github.com/apache/accumulo/pull/2636#discussion_r852207512
##########
server/base/src/main/java/org/apache/accumulo/server/metadata/ServerAmpleImpl.java:
##########
@@ -246,7 +244,7 @@ public Stream<ExternalCompactionFinalState>
getExternalCompactionFinalStates() {
scanner.setRange(ExternalCompactionSection.getRange());
int pLen = ExternalCompactionSection.getRowPrefix().length();
- return StreamSupport.stream(scanner.spliterator(), false)
+ return scanner.stream()
.map(e -> ExternalCompactionFinalState.fromJson(
ExternalCompactionId.of(e.getKey().getRowData().toString().substring(pLen)),
e.getValue().toString()));
Review Comment:
Nevermind, the stream is not being returned, it's being collected into the
Map and the Map is returned.
--
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]