wchevreuil commented on a change in pull request #3721:
URL: https://github.com/apache/hbase/pull/3721#discussion_r725136101



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/storefiletracker/StoreFileTrackerFactory.java
##########
@@ -158,12 +166,12 @@ static StoreFileTrackerBase 
createForMigration(Configuration conf, String config
     return ReflectionUtils.newInstance(tracker, conf, isPrimaryReplica, ctx);
   }
 
-  public static void persistTrackerConfig(Configuration conf, 
TableDescriptorBuilder builder) {
+  public static void updateDescriptor(Configuration conf, 
TableDescriptorBuilder builder) {
     TableDescriptor tableDescriptor = builder.build();
     ColumnFamilyDescriptor cfDesc = tableDescriptor.getColumnFamilies()[0];
     StoreContext context = 
StoreContext.getBuilder().withColumnFamilyDescriptor(cfDesc).build();
-    StoreFileTracker tracker = StoreFileTrackerFactory.create(conf, true, 
context);
-    tracker.persistConfiguration(builder);
+    StoreFileTracker tracker = StoreFileTrackerFactory.getInstance(conf, true, 
context);

Review comment:
       So the if check needs to be performed by the SFT impls, as those are the 
ones who knows what configs they should check for. Changed the method to 
receive and return TableDescriptor, as suggested. 




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