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 759b5d5554 fixes bug writing to root tablet (#3897) 759b5d5554 is described below commit 759b5d55542ee4e12870ea5484a15eea132a97aa Author: Keith Turner <ktur...@apache.org> AuthorDate: Thu Oct 26 19:44:23 2023 -0400 fixes bug writing to root tablet (#3897) When the root tablet had no location, writes to it were failing. --- .../java/org/apache/accumulo/core/clientImpl/RootClientTabletCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/accumulo/core/clientImpl/RootClientTabletCache.java b/core/src/main/java/org/apache/accumulo/core/clientImpl/RootClientTabletCache.java index f86d90b6f8..6509074017 100644 --- a/core/src/main/java/org/apache/accumulo/core/clientImpl/RootClientTabletCache.java +++ b/core/src/main/java/org/apache/accumulo/core/clientImpl/RootClientTabletCache.java @@ -58,7 +58,7 @@ public class RootClientTabletCache extends ClientTabletCache { public <T extends Mutation> void binMutations(ClientContext context, List<T> mutations, Map<String,TabletServerMutations<T>> binnedMutations, List<T> failures) { CachedTablet rootCachedTablet = getRootTabletLocation(context); - if (rootCachedTablet != null) { + if (rootCachedTablet != null && rootCachedTablet.getTserverLocation().isPresent()) { var tsm = new TabletServerMutations<T>(rootCachedTablet.getTserverSession().orElseThrow()); for (T mutation : mutations) { tsm.addMutation(RootTable.EXTENT, mutation);