ZhaoBQ commented on a change in pull request #2803:
URL: https://github.com/apache/hbase/pull/2803#discussion_r549560738



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/util/TableDescriptorChecker.java
##########
@@ -82,8 +83,11 @@ public static void sanityCheck(final Configuration c, final 
TableDescriptor td)
 
     // check max file size
     long maxFileSizeLowerLimit = 2 * 1024 * 1024L; // 2M is the default lower 
limit
-    long maxFileSize = td.getMaxFileSize();
-    if (maxFileSize < 0) {
+    String maxFileSizeValue = td.getValue(TableDescriptorBuilder.MAX_FILESIZE);
+    long maxFileSize = maxFileSizeValue == null? -1 : 
Long.parseLong(maxFileSizeValue);
+    // if not set MAX_FILESIZE in TableDescriptor,
+    // use maxFileSizeLowerLimit instead to skip this check
+    if (maxFileSizeValue == null) {

Review comment:
       Thanks for the suggestion, fix it now.




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


Reply via email to