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
The following commit(s) were added to refs/heads/main by this push: new e41cda6460 fixes bug in ondemand tablet hosting (#4998) e41cda6460 is described below commit e41cda6460187ff871c2b45b652af76cecfbf251 Author: Keith Turner <ktur...@apache.org> AuthorDate: Fri Oct 18 10:34:38 2024 -0400 fixes bug in ondemand tablet hosting (#4998) When a hosting request was sent to the manager and the manager determined there was nothing to do it would attempt to create a batch scanner with an empty set of ranges and this would fail. Added a check to see if the ranges were empty. --- .../src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java b/server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java index 9ebe9eee42..69f96f89b7 100644 --- a/server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java +++ b/server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java @@ -371,7 +371,9 @@ abstract class TabletGroupWatcher extends AccumuloDaemonThread { } }); - processRanges(ranges); + if (!ranges.isEmpty()) { + processRanges(ranges); + } } finally { inProgress.forEach(hostingRequestInProgress::remove); }