Skip to content

ARTEMIS-6203 make MQTT resiliency soak tests more robust - #6651

Merged
jbertram merged 1 commit into
apache:mainfrom
jbertram:ARTEMIS-6203
Sep 2, 2026
Merged

ARTEMIS-6203 make MQTT resiliency soak tests more robust#6651
jbertram merged 1 commit into
apache:mainfrom
jbertram:ARTEMIS-6203

Conversation

@jbertram

Copy link
Copy Markdown
Contributor

There is another race in the soak test which focuses on resiliency for MQTT subscribers. After the subscription queue message count reaches 0 the PUBREC DuplicateIDCache may still hold entries because the core message is acknowledged when the broker receives the PUBREC while the cache entry isn't removed until the broker receives the PUBCOMP one round-trip later. It's possible the test will verify the cache size during this window and fail.

The fix is simply to use Wait to verify the cache size.

There is another race in the soak test which focuses on resiliency for
MQTT subscribers. After the subscription queue message count reaches 0
the PUBREC DuplicateIDCache may still hold entries because the core
message is acknowledged when the broker receives the PUBREC while the
cache entry isn't removed until the broker receives the PUBCOMP one
round-trip later. It's possible the test will verify the cache size
during this window and fail.

The fix is simply to use Wait to verify the cache size.

Co-Authored-By: Claude <noreply@anthropic.com>
@jbertram
jbertram merged commit 1580798 into apache:main Sep 2, 2026
6 checks passed
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