gvprathyusha6 commented on code in PR #5834:
URL: https://github.com/apache/hbase/pull/5834#discussion_r1570996949


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileInfo.java:
##########
@@ -119,12 +120,13 @@ public class StoreFileInfo implements Configurable {
    * @param primaryReplica true if this is a store file for primary replica, 
otherwise false.
    */
   public StoreFileInfo(final Configuration conf, final FileSystem fs, final 
Path initialPath,
-    final boolean primaryReplica) throws IOException {
-    this(conf, fs, null, initialPath, primaryReplica);
+    final boolean primaryReplica, final StoreFileTracker sft) throws 
IOException {

Review Comment:
   you mean, we move the creation of StoreFileInfo itself to SFT, like 
SFT.getStoreFileInfo(path, primaryReplica) something like that right? yes this 
does look better to me.
   Couple of trivial constructors like 
[these](https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileInfo.java#L214)
 we can have in StoreFileInfo and rest we can move to SFT interface



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