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

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


The following commit(s) were added to refs/heads/elasticity by this push:
     new 779a5211ff fixes NPE in compaction code (#4640)
779a5211ff is described below

commit 779a5211ff861a2ef144b30790f3da1499318722
Author: Keith Turner <ktur...@apache.org>
AuthorDate: Thu Jun 6 15:14:52 2024 -0400

    fixes NPE in compaction code (#4640)
---
 .../java/org/apache/accumulo/manager/tableOps/compact/CompactRange.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/manager/src/main/java/org/apache/accumulo/manager/tableOps/compact/CompactRange.java
 
b/server/manager/src/main/java/org/apache/accumulo/manager/tableOps/compact/CompactRange.java
index a8ba9ab6de..a42b41088c 100644
--- 
a/server/manager/src/main/java/org/apache/accumulo/manager/tableOps/compact/CompactRange.java
+++ 
b/server/manager/src/main/java/org/apache/accumulo/manager/tableOps/compact/CompactRange.java
@@ -110,7 +110,7 @@ public class CompactRange extends ManagerRepo {
       // find the tablet containing endRow and pass its end row to the 
CompactionDriver constructor.
       keyExtent = findContaining(env.getContext().getAmple(), tableId, new 
Text(endRow));
       endRowOfEndRowTablet =
-          keyExtent.endRow().getBytes() == null ? null : 
TextUtil.getBytes(keyExtent.endRow());
+          keyExtent.endRow() == null ? null : 
TextUtil.getBytes(keyExtent.endRow());
     }
     return new CompactionDriver(namespaceId, tableId, prevRowOfStartRowTablet,
         endRowOfEndRowTablet);

Reply via email to