kevinrr888 commented on code in PR #5637:
URL: https://github.com/apache/accumulo/pull/5637#discussion_r2145104782
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -1892,10 +1890,11 @@ private long numMigrations() {
long count = 0;
for (DataLevel dl : DataLevel.values()) {
// prev row needed for the extent
- try (var tabletsMetadata =
getContext().getAmple().readTablets().forLevel(dl)
- .fetch(TabletMetadata.ColumnType.PREV_ROW,
TabletMetadata.ColumnType.MIGRATION).build()) {
- count += tabletsMetadata.stream()
- .filter(tabletMetadata -> tabletMetadata.getMigration() !=
null).count();
+ try (var tabletsMetadata = getContext()
+
.getAmple().readTablets().forLevel(dl).fetch(TabletMetadata.ColumnType.PREV_ROW,
+ TabletMetadata.ColumnType.MIGRATION,
TabletMetadata.ColumnType.LOCATION)
Review Comment:
This was intended, but looking at this again, it was not correct to add it
here. Also realized fetching PREV_ROW here wasn't needed, so removed that 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]