dlmarion commented on code in PR #5924:
URL: https://github.com/apache/accumulo/pull/5924#discussion_r2375470306
##########
core/src/main/java/org/apache/accumulo/core/data/constraints/DefaultKeySizeConstraint.java:
##########
@@ -68,6 +72,9 @@ public List<Short> check(Environment env, Mutation mutation) {
if (size > maxSize) {
violations.add(MAX__KEY_SIZE_EXCEEDED_VIOLATION);
+ Key k = new Key(mutation.getRow(), cu.getColumnFamily(),
cu.getColumnQualifier(),
+ cu.getColumnVisibility(), cu.getTimestamp(), cu.isDeleted());
+ LOG.info("Constraint violation. Key {} (size = {}) larger than 1MB",
k, size);
Review Comment:
This could likely be avoided if Accumulo sent some actual details about the
error to the client. For a lot of errors sent back to the client it just says
that an error happened on the server. Then the user has to go log-diving.
--
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]