Skip to content

Commit efb202d

Browse files
committed
Bug 35532087 - Build: management.ManagementInfoResource*.testTruncateCache (14.1.1.0 -> ce-v14.1.1.0, ce-main, ce-v22.06, @101474)
[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v22.06/": change = 101485]
1 parent ff5d33f commit efb202d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

prj/coherence-core/src/main/java/com/tangosol/net/management/MBeanAccessor.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -20,6 +20,8 @@
2020
import com.tangosol.util.Base;
2121
import com.tangosol.util.Filter;
2222

23+
import com.tangosol.util.WrapperException;
24+
2325
import com.tangosol.util.filter.AlwaysFilter;
2426
import com.tangosol.util.function.Remote;
2527

@@ -806,6 +808,19 @@ public Map<String, Object> apply(MBeanServer mBeanServer)
806808

807809
continue;
808810
}
811+
catch (WrapperException e)
812+
{
813+
if (e.getCause() instanceof InstanceNotFoundException)
814+
{
815+
// ignore; assume MBean unregistered between query and invoke
816+
CacheFactory.log("MBeanAccessor$Invoke#apply(mbeanServer=" + mBeanServer +
817+
", objName=" + sObjectName +
818+
"): ignoring InstanceNotFoundException: " + e.getMessage(), Base.LOG_QUIET);
819+
820+
continue;
821+
}
822+
throw e;
823+
}
809824
mapMBeans.put(sObjectName, result);
810825
}
811826
return mapMBeans;

0 commit comments

Comments
 (0)