Skip to content

Commit c806b39

Browse files
committed
Bug 37554736 - Build: persistence.BerkeleyDBSimplePersistenceTests#testMultipleRestartsWithClientEnsureCache missing clean up when assertion failure (v14.1.1.2206->ce-v2206)
Remote remote.function on coherence-ce/release/coherence-ce-v22.06 success, changes 114133, job.9.20250205190750.24531 [git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v22.06/": change = 114141]
1 parent 9e48c34 commit c806b39

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

prj/test/functional/persistence/src/main/java/persistence/BerkeleyDBSimplePersistenceTests.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, 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.
@@ -177,7 +177,8 @@ public void testMultipleRestartsWithClientEnsureCache(String sMode)
177177
.getConfigurableCacheFactory("client-cache-config.xml", null);
178178
setFactory(factory);
179179

180-
final String sServer = "testMultipleRestartsWithClientEnsureCache";
180+
final String sServer = "testMultipleRestartsWithClientEnsureCache" +
181+
Character.toUpperCase(sMode.charAt(0)) + sMode.substring(1);
181182
final String sPersistentCache = "simple-persistent";
182183
NamedCache cache = getNamedCache(sPersistentCache);
183184
DistributedCacheService service = (DistributedCacheService) cache.getCacheService();
@@ -250,6 +251,8 @@ public void testMultipleRestartsWithClientEnsureCache(String sMode)
250251
}
251252
finally
252253
{
254+
getFactory().destroyCache(cache);
255+
stopAllApplications();
253256
CacheFactory.shutdown();
254257

255258
FileHelper.deleteDirSilent(fileActive);

0 commit comments

Comments
 (0)