keith-turner commented on code in PR #5924:
URL: https://github.com/apache/accumulo/pull/5924#discussion_r2373282349


##########
core/src/main/java/org/apache/accumulo/core/data/constraints/DefaultKeySizeConstraint.java:
##########
@@ -68,6 +72,8 @@ public List<Short> check(Environment env, Mutation mutation) {
 
       if (size > maxSize) {
         violations.add(MAX__KEY_SIZE_EXCEEDED_VIOLATION);
+        LOG.info("Constraint violation. Key starting with row '{}' (size = {}) 
larger than 1MB",

Review Comment:
   > Updated in 
https://github.com/apache/accumulo/commit/fe43de1d48699c919aceea0779e909cfcc69462e
 to just create a Key from the parts, then use Key.toString()
   
   That seems good, one drawback is that it will not include the length of the 
field in the message.  However it would probably be generally useful to update 
the key truncation to string code to include that info.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to