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

Fix flake in test case session_upgrade_v3_v5_qos1 #13480

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

ansd
Copy link
Member

@ansd ansd commented Mar 11, 2025

CI sometimes failed with the following error:

v5_SUITE:session_upgrade_v3_v5_qos failed on line 1068
Reason: {test_case_failed,Received unexpected PUBLISH payload. Expected: <<"2">> Got: <<"3">>}

The emqtt client auto acks by default.
Therefore, if Subv3 client was able to successfully auto ack message 2 before Subv3 disconnected, Subv5 client did not receive message 2.

This commit fixes this flake by making sure that Subv3 does not ack message 2.

CI sometimes failed with the following error:
```
v5_SUITE:session_upgrade_v3_v5_qos failed on line 1068
Reason: {test_case_failed,Received unexpected PUBLISH payload. Expected: <<"2">> Got: <<"3">>}
```

The emqtt client auto acks by default.
Therefore, if Subv3 client was able to successfully auto ack message 2
before Subv3 disconnected, Subv5 client did not receive message 2.

This commit fixes this flake by making sure that Subv3 does not ack
message 2.
@ansd ansd marked this pull request as ready for review March 11, 2025 16:11
@ansd ansd requested a review from dumbbell March 11, 2025 16:11
@ansd ansd merged commit 7cf0766 into main Mar 11, 2025
272 of 273 checks passed
@ansd ansd deleted the session_upgrade_v3_v5_qos1 branch March 11, 2025 17:43
michaelklishin added a commit that referenced this pull request Mar 11, 2025
Fix flake in test case session_upgrade_v3_v5_qos1 (backport #13480) (backport #13481)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants