Visitar URL original
Isolate persistence directories in durable subscription tests by garydgregory · Pull Request #2638 · apache/activemq · GitHub
Skip to content

Isolate persistence directories in durable subscription tests - #2638

Open
garydgregory wants to merge 1 commit into
apache:mainfrom
garydgregory:fix_DurableSubscriptionOfflineTestBase_sharing
Open

garydgregory wants to merge 1 commit into
apache:mainfrom
garydgregory:fix_DurableSubscriptionOfflineTestBase_sharing

Conversation

@garydgregory

Copy link
Copy Markdown
Member

DurableSubscriptionOfflineTestBase creates persistence adapters without assigning a broker-specific directory. KahaDB therefore uses its default shared directory, allowing concurrently running tests to contend for the same store lock.

In CI, DurableSubscriptionOffline2Test spent about 50 seconds waiting for that lock after restarting its broker. Its 60-second timeout then expired while receiving messages.

Set each adapter’s directory beneath the broker’s data directory, following the existing TestSupport pattern. This isolates test and parameter combinations while preserving stored messages across broker restarts.

DurableSubscriptionOfflineTestBase creates persistence adapters without
assigning a broker-specific directory. KahaDB therefore uses its default
shared directory, allowing concurrently running tests to contend for the
same store lock.

In CI, DurableSubscriptionOffline2Test spent about 50 seconds waiting
for that lock after restarting its broker. Its 60-second timeout then
expired while receiving messages.

Set each adapter’s directory beneath the broker’s data directory,
following the existing TestSupport pattern. This isolates test and
parameter combinations while preserving stored messages across broker
restarts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant