milleruntime commented on a change in pull request #2025:
URL: https://github.com/apache/accumulo/pull/2025#discussion_r617617301



##########
File path: 
core/src/main/java/org/apache/accumulo/core/constraints/DefaultKeySizeConstraint.java
##########
@@ -53,16 +53,14 @@ public String getViolationDescription(short violationCode) {
       return NO_VIOLATIONS;
 
     List<Short> violations = new ArrayList<>();
-
+    int size = mutation.getRow().length;
     for (ColumnUpdate cu : mutation.getUpdates()) {
-      int size = mutation.getRow().length;

Review comment:
       The `BatchWriter` at least prevents this from every happening and will 
throw an exception:
   
https://github.com/apache/accumulo/blob/675e41aaed0f8ae250d97a10dad35a8aef4c3e82/core/src/main/java/org/apache/accumulo/core/clientImpl/TabletServerBatchWriter.java#L247




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