You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/02/26 13:29:30 UTC

[GitHub] [accumulo] keith-turner commented on a change in pull request #1518: Fix #1430 Enforce table name limit for new tables

keith-turner commented on a change in pull request #1518: Fix #1430 Enforce table name limit for new tables
URL: https://github.com/apache/accumulo/pull/1518#discussion_r384487894
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java
 ##########
 @@ -753,6 +754,8 @@ public void clone(String srcTableName, String newTableName, CloneConfiguration c
 
     checkArgument(srcTableName != null, "srcTableName is null");
     checkArgument(newTableName != null, "newTableName is null");
+    checkArgument(newTableName.length() <= MAX_TABLE_NAME_LEN,
+        "Table name is longer than 1024 characters");
 
 Review comment:
   ```suggestion
           "Table name is longer than "+ MAX_TABLE_NAME_LEN +" characters");
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services