This is an automated email from the ASF dual-hosted git repository.
dlmarion 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 05b5e68740 Modified SystemIteratorEnvironmentImpl to implement
isRunningLowOnMemory (#5624)
05b5e68740 is described below
commit 05b5e68740d6da445170438bc1e583c1ee6f5ed1
Author: Dave Marion <[email protected]>
AuthorDate: Tue Jun 10 07:29:55 2025 -0400
Modified SystemIteratorEnvironmentImpl to implement isRunningLowOnMemory
(#5624)
SystemIteratorEnvironmentImpl was added in #5587, but did not implement
the isRunningLowOnMemory method. It deferred to its parent class
implementation, ClientIteratorEnvironment.isRunningLowOnMemory, which
just returns false.
---
.../apache/accumulo/server/iterators/SystemIteratorEnvironment.java | 5 -----
.../accumulo/server/iterators/SystemIteratorEnvironmentImpl.java | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironment.java
b/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironment.java
index e13fa93e80..72daff609c 100644
---
a/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironment.java
+++
b/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironment.java
@@ -30,9 +30,4 @@ public interface SystemIteratorEnvironment extends
IteratorEnvironment {
SortedKeyValueIterator<Key,Value>
getTopLevelIterator(SortedKeyValueIterator<Key,Value> iter);
- @Override
- default boolean isRunningLowOnMemory() {
- return getServerContext().getLowMemoryDetector().isRunningLowOnMemory();
- }
-
}
diff --git
a/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironmentImpl.java
b/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironmentImpl.java
index 2705703ad6..ac10b553eb 100644
---
a/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironmentImpl.java
+++
b/server/base/src/main/java/org/apache/accumulo/server/iterators/SystemIteratorEnvironmentImpl.java
@@ -128,4 +128,9 @@ public class SystemIteratorEnvironmentImpl extends
ClientIteratorEnvironment
return new MultiIterator(allIters, false);
}
+ @Override
+ public boolean isRunningLowOnMemory() {
+ return getServerContext().getLowMemoryDetector().isRunningLowOnMemory();
+ }
+
}