Skip to content

Commit 74a4037

Browse files
committed
Bug 37554736 - Build: persistence.BerkeleyDBSimplePersistenceTests#testMultipleRestartsWithClientEnsureCache missing clean up when assertion failure (main)
Remote remote.function on main success, changes 114101, job.9.20250205123447.1607 (auto-submit integ 114105 main -> coherence-ce/main after successfully running remote remote.function) Job ID: job.9.20250205140320.2815 [git-p4: depot-paths = "//dev/coherence-ce/main/": change = 114109]
1 parent 9f14c7a commit 74a4037

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, 2024, 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)