anoopsjohn commented on a change in pull request #2923:
URL: https://github.com/apache/hbase/pull/2923#discussion_r575930608



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/TakeSnapshotHandler.java
##########
@@ -139,12 +140,17 @@ public TakeSnapshotHandler(SnapshotDescription snapshot, 
final MasterServices ma
   }
 
   private TableDescriptor loadTableDescriptor()
-      throws FileNotFoundException, IOException {
+      throws IOException {
     TableDescriptor htd =
       this.master.getTableDescriptors().get(snapshotTable);
     if (htd == null) {
       throw new IOException("TableDescriptor missing for " + snapshotTable);
     }
+    if(htd.getMaxFileSize()==-1 &&

Review comment:
       When we have max file size already set on a table (at src cluster) we 
will be preserving it in snapshot's HTD anyways right. Just confirming.
   Also while taking snapshot, we can pass in this new config   
hbase.snapshot.max.filesize.preserve = true right?
   Very useful feature.




----------------------------------------------------------------
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:
[email protected]


Reply via email to