karthikhw commented on a change in pull request #674: HBASE-23095 Reuse 
FileStatus in StoreFileInfo
URL: https://github.com/apache/hbase/pull/674#discussion_r329439159
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileInfo.java
 ##########
 @@ -109,6 +111,11 @@
    */
   public StoreFileInfo(final Configuration conf, final FileSystem fs, final 
Path initialPath)
       throws IOException {
+    this(conf, fs, initialPath, null, null);
+  }
+
+  private StoreFileInfo(final Configuration conf, final FileSystem fs, final 
Path initialPath,
+      final Long createdTimestamp, final Long size) throws IOException {
 
 Review comment:
   I initially thought the same Duo like directly passing "FileStatus" in 
constructor but what I feel that "Path" is also in same constructor and even 
that Path can be constructed from FileStatus.  So that looks to me not right.  
:) Another important is Path can not be removed from constructor because many 
callers pass only Path object, not FileStatus.
   
   I am fine Duo if you still want to change, 
   public StoreFileInfo(final Configuration conf, final FileSystem fs, final 
Path initialPath, FileStatus filestatus)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to