From 78cbdbe5560272028b93401b9f2f4f792c625798 Mon Sep 17 00:00:00 2001 From: Keith Turner Date: Sat, 14 Dec 2024 10:32:27 -0500 Subject: [PATCH] Only read data for fate lock from zookeeper when its used (#5180) --- .../java/org/apache/accumulo/core/fate/zookeeper/FateLock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/accumulo/core/fate/zookeeper/FateLock.java b/core/src/main/java/org/apache/accumulo/core/fate/zookeeper/FateLock.java index fa0e4db7edd..9ac21a8d31c 100644 --- a/core/src/main/java/org/apache/accumulo/core/fate/zookeeper/FateLock.java +++ b/core/src/main/java/org/apache/accumulo/core/fate/zookeeper/FateLock.java @@ -103,9 +103,9 @@ public SortedMap getEarlierEntries(long entry) { for (String name : children) { // this try catch must be done inside the loop because some subset of the children may exist try { - byte[] data = zoo.getData(path + "/" + name); long order = Long.parseLong(name.substring(PREFIX.length())); if (order <= entry) { + byte[] data = zoo.getData(path + "/" + name); result.put(order, data); } } catch (KeeperException.NoNodeException ex) {