ddanielr commented on code in PR #6431:
URL: https://github.com/apache/accumulo/pull/6431#discussion_r3433087533


##########
core/src/main/java/org/apache/accumulo/core/util/Merge.java:
##########
@@ -239,16 +243,17 @@ protected void merge(AccumuloClient client, String table, 
List<Size> sizes, int
     }
   }
 
-  protected Iterator<Size> getSizeIterator(AccumuloClient client, String 
tablename, Text start,
+  protected Iterator<Size> getSizeIterator(AccumuloClient client, String 
tableName, Text start,
       Text end) throws MergeException {
     // open up metadata, walk through the tablets.
 
     TableId tableId;
     TabletsMetadata tablets;
     try {
       ClientContext context = (ClientContext) client;
-      tableId = context.getTableId(tablename);
-      tablets = TabletsMetadata.builder(context).scanMetadataTable()
+      tableId = context.getTableId(tableName);
+      DataLevel dataLevel = DataLevel.of(tableId);
+      tablets = 
TabletsMetadata.builder(context).scanTable(dataLevel.metaTable())

Review Comment:
   Using the dataLevel of the current table instead of `.scanMetadataTable` 
allows the Merge Utility to perform merges against the metadata table. 



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