You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2026/03/04 00:25:06 UTC

(accumulo) branch main updated (82b162783b -> 425a00990b)

This is an automated email from the ASF dual-hosted git repository.

kturner pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


    from 82b162783b Merge branch '2.1'
     add ce23b9575c removes mutable list constant from DefaultKeySizeConstraint (#6163)
     new 425a00990b Merge branch '2.1'

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../accumulo/core/data/constraints/DefaultKeySizeConstraint.java      | 4 +---
 .../accumulo/core/data/constraints/DefaultKeySizeConstraintTest.java  | 3 ++-
 2 files changed, 3 insertions(+), 4 deletions(-)


(accumulo) 01/01: Merge branch '2.1'

Posted by kt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kturner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git

commit 425a00990bca613e5a4a1785c8c7c45d6e79bfb0
Merge: 82b162783b ce23b9575c
Author: Keith Turner <kt...@apache.org>
AuthorDate: Wed Mar 4 00:24:25 2026 +0000

    Merge branch '2.1'

 .../accumulo/core/data/constraints/DefaultKeySizeConstraint.java      | 4 +---
 .../accumulo/core/data/constraints/DefaultKeySizeConstraintTest.java  | 3 ++-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --cc core/src/main/java/org/apache/accumulo/core/data/constraints/DefaultKeySizeConstraint.java
index 7cdb059f3c,8e79dab523..0558ac7bda
--- a/core/src/main/java/org/apache/accumulo/core/data/constraints/DefaultKeySizeConstraint.java
+++ b/core/src/main/java/org/apache/accumulo/core/data/constraints/DefaultKeySizeConstraint.java
@@@ -44,15 -44,14 +44,13 @@@ public class DefaultKeySizeConstraint i
    @Override
    public String getViolationDescription(short violationCode) {
  
 -    switch (violationCode) {
 -      case MAX__KEY_SIZE_EXCEEDED_VIOLATION:
 -        return "Key was larger than 1MB";
 +    if (violationCode == MAX__KEY_SIZE_EXCEEDED_VIOLATION) {
 +      return "Key was larger than 1MB";
      }
 -
      return null;
 +
    }
  
-   static final List<Short> NO_VIOLATIONS = new ArrayList<>();
- 
    @Override
    public List<Short> check(Environment env, Mutation mutation) {