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



##########
File path: 
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide5.java
##########
@@ -2274,6 +2274,20 @@ public void testCellSizeLimit() throws IOException {
         // expected
       }
     }
+    //test cell size no limit
+    final TableName noLimitTable = TableName.valueOf("testCellSizeNoLimit");
+    TableDescriptorBuilder.ModifyableTableDescriptor noLimitTableDescriptor =
+      new TableDescriptorBuilder.ModifyableTableDescriptor(noLimitTable)
+        .setValue(HRegion.HBASE_MAX_CELL_SIZE_KEY, Integer.toString(0));
+    noLimitTableDescriptor.setColumnFamily(familyDescriptor);
+    try (Admin admin = TEST_UTIL.getAdmin()) {
+      admin.createTable(noLimitTableDescriptor);
+    }
+    // Will succeed
+    try (Table nt = TEST_UTIL.getConnection().getTable(noLimitTable)) {
+      nt.put(new Put(ROW).addColumn(FAMILY, QUALIFIER,  new byte[9 * 1024 * 
1024]));

Review comment:
       NIT: For clarity, can we use `HRegion.DEFAULT_MAX_CELL_SIZE + 1`, 
instead? 




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