Skip to content

Commit

Permalink
Bug 36857931 - Build: TopicsStorageRecoveryTests.shouldRecoverAfterCl…
Browse files Browse the repository at this point in the history
…eanStorageRestart timed out after 60m of inactivity (merge ce/main -> ce/24.09 @ 111609)

[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v24.09/": change = 111616]
  • Loading branch information
vasac committed Sep 26, 2024
1 parent 5db8edf commit 7fcea30
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
import com.oracle.coherence.common.base.Logger;

import com.oracle.coherence.common.collections.ConcurrentHashMap;
import com.oracle.coherence.common.util.Threads;
import com.oracle.coherence.testing.junit.ThreadDumpOnTimeoutRule;

import com.tangosol.internal.net.topic.impl.paged.PagedTopicPublisher;
import com.tangosol.io.ExternalizableLite;

Expand Down Expand Up @@ -857,13 +860,26 @@ public int hashCode()
@ClassRule
public static TestLogs s_testLogs = new TestLogs(TopicsRecoveryTests.class);

private static CoherenceCluster s_storageCluster;

/**
* A JUnit rule that will cause the test to fail if it runs too long.
* A thread dump will be generated on failure.
*/
@ClassRule
public static final ThreadDumpOnTimeoutRule timeout = ThreadDumpOnTimeoutRule.after(30, TimeUnit.MINUTES, () ->
s_storageCluster.forEach(member -> member.invoke(() ->
{
System.err.println(Threads.getThreadDump(true));
return null;
})));

private static final OptionsByType s_options = OptionsByType.of(
SystemProperty.of("coherence.guard.timeout", 60000),
CacheConfig.of("simple-persistence-bdb-cache-config.xml"),
OperationalOverride.of("common-tangosol-coherence-override.xml"),
SystemProperty.of("coherence.distributed.partitioncount", "13"));

private static CoherenceCluster s_storageCluster;

private static Coherence s_coherence;

Expand Down

0 comments on commit 7fcea30

Please sign in to comment.