Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt-streaming: test two fixes for flaky tests #460

Closed
wants to merge 2 commits into from

Conversation

raboof
Copy link
Member

@raboof raboof commented Feb 8, 2024

this PR combines #456 and #459 to see if CI agrees they are now fixed. Not for merge, merge them both separately.

…ions' test

It appears the flakiness was caused by the two connections using the same
connection id for different connections in the same session. I'm not intimately
familiar with this codebase, but AFAICS it seems this connection id is an
internal concern to the component, and not an MQTT concept. I think we should
probably provide an API that does not bother the user with this concept at
all, and manages non-overlapping connection ids entirely internal to the
component. I don't get the impression that it was the purpose of the test to
test the behaviour in case of overlapping connection ids.

Fixes apache#454

After this change the 'unsubscribe a client session' seems to fail
a lot on CI, but that seems unrelated and something to fix in a separate PR.
Previously, in this test, the server sent a 'publish'
concurrent to the client sending the 'ack' for that
publish. This fix makes sure the 'ack' is sent only after
observing the 'publish'.

Hopefully fixes apache#458
@raboof
Copy link
Member Author

raboof commented Feb 8, 2024

(ran the tests a few times, they now succeeded each time, I think this sufficiently suggests those two PRs fix the main flakiness)

@raboof raboof closed this Feb 8, 2024
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