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 intermittent failure of the role change client reset tests #7919

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

michael-wb
Copy link
Contributor

@michael-wb michael-wb commented Jul 23, 2024

What, How & Why?

There is an intermittent failure in the "flx: role changes during client resets complete successfully" test where the sync client event hook callback is called at the same time the session is being torn down, leading to the weak_session.lock() returning a nullptr and the REQUIRE(session) assertion is failing. Example test failure

This change replaces the REQUIRE(session) with an early return from the event hook callback to prevent the test from failing in this case.

☑️ ToDos

  • [ ] 📝 Changelog update
  • [ ] 🚦 Tests (or not relevant)
  • [ ] C-API, if public C++ API changed
  • [ ] bindgen/spec.yml, if public C++ API changed

@michael-wb michael-wb added no-changelog no-jira-ticket Skip checking the PR title for Jira reference labels Jul 23, 2024
@michael-wb michael-wb self-assigned this Jul 23, 2024
@cla-bot cla-bot bot added the cla: yes label Jul 23, 2024
Copy link

coveralls-official bot commented Jul 23, 2024

Pull Request Test Coverage Report for Build michael.wilkersonbarker_1304

Details

  • 1 of 3 (33.33%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on mwb/fix-role-change-failure at 91.043%

Changes Missing Coverage Covered Lines Changed/Added Lines %
test/object-store/sync/flx_role_change.cpp 1 3 33.33%
Totals Coverage Status
Change from base Build 2515: 91.0%
Covered Lines: 216426
Relevant Lines: 237719

💛 - Coveralls

@michael-wb michael-wb merged commit 337a9c0 into master Jul 24, 2024
42 checks passed
@michael-wb michael-wb deleted the mwb/fix-role-change-failure branch July 24, 2024 13:12
@github-actions github-actions bot mentioned this pull request Jul 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-changelog no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants