This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch OAK-11500
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/OAK-11500 by this push:
new ef671b7e54 OAK-11500: fix change in MongoDocumentStore
ef671b7e54 is described below
commit ef671b7e542096fd22a309ebdef3970178b96425
Author: Julian Reschke <[email protected]>
AuthorDate: Tue Mar 4 10:57:04 2025 +0100
OAK-11500: fix change in MongoDocumentStore
---
.../jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
index 8bd3a48e12..0cb16d0d63 100644
---
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
+++
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
@@ -41,6 +41,7 @@ import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
+import org.apache.commons.io.IOUtils;
import org.apache.jackrabbit.guava.common.base.Stopwatch;
import org.apache.jackrabbit.guava.common.collect.Iterables;
import org.apache.jackrabbit.guava.common.collect.Iterators;
@@ -2029,7 +2030,7 @@ public class MongoDocumentStore implements DocumentStore {
clusterNodesConnection.close();
}
try {
- throttlingMetricsUpdater.close();
+ IOUtils.close(throttlingMetricsUpdater);
} catch (IOException e) {
LOG.warn("Error occurred while closing throttlingMetricsUpdater",
e);
}