dlmarion commented on code in PR #3409:
URL: https://github.com/apache/accumulo/pull/3409#discussion_r1204615289
##########
core/src/main/java/org/apache/accumulo/core/metadata/schema/RootTabletMetadata.java:
##########
@@ -156,10 +159,11 @@ public SortedMap<Key,Value> toKeyValues() {
* Convert this class to a {@link TabletMetadata}
*/
public TabletMetadata toTabletMetadata() {
- // use a stream so we don't have to re-sort in a new TreeMap<Key,Value>
structure
- Stream<SimpleImmutableEntry<Key,Value>> entries = getKeyValues();
- return TabletMetadata.convertRow(entries.iterator(),
- EnumSet.allOf(TabletMetadata.ColumnType.class), false);
+ TreeMap<Key,Value> entries = new TreeMap<>();
+ getKeyValues().forEach(entry -> entries.put(entry.getKey(),
entry.getValue()));
+ ManagerTabletInfo.addActions(entries,
Set.of(ManagementAction.NEEDS_LOCATION_UPDATE));
Review Comment:
Removed in 9153726
--
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]