From ab06138e2c30027e8b6f90150afc5d95b3e899fc Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Wed, 13 Mar 2024 12:11:13 +0300 Subject: [PATCH] Add build.yml fix range cache --- .../framework/remote/ManagedAsyncConnectorInfoManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/remote/ManagedAsyncConnectorInfoManager.java b/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/remote/ManagedAsyncConnectorInfoManager.java index fb7dd3b3..b565e8bb 100644 --- a/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/remote/ManagedAsyncConnectorInfoManager.java +++ b/OpenICF-java-framework/connector-framework-server/src/main/java/org/forgerock/openicf/framework/remote/ManagedAsyncConnectorInfoManager.java @@ -186,12 +186,13 @@ public Promise findConnectorInfoAsync( final Pair> cacheEntry = Pair.of(keyRange, PromiseImpl. create()); + rangePromiseCacheList.add(cacheEntry); cacheEntry.getValue().thenOnResultOrException(new Runnable() { public void run() { rangePromiseCacheList.remove(cacheEntry); } }); - rangePromiseCacheList.add(cacheEntry); + for (Map.Entry> entry : managedConnectorInfos .entrySet()) {