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

MDEV-35304 fixup: Threading-agnostic MTR test #3897

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ParadoxV5
Copy link
Contributor

@ParadoxV5 ParadoxV5 commented Mar 19, 2025

  • The Jira issue number for this PR is: MDEV-35304

Description

Improve the multi_source.connects_tried feature test:

  • Replace the main course from timing checks to checking timing
    • Not using a specific SLEEP eliminates the possibility (of failure) that it awakens before the Connects_Tried counter increments.
  • In replacement-based tests of conventional views (SHOW & variants), assert the parallel values without distinguishing which is which
    • There were rare cases where both values end up equal (even though one was configured to tick more frequently than the other).
  • Comment touchups

Release Notes

N/A

How can this PR be tested?

It has been evident that timing tests easily lead to sporadic failures.
Perhaps our CI (Buildbot) are overloaded with concurrent jobs that their thread schedulers had to make possibly-unrealistic compromises.

PR quality check

(Yes, this is a refactoring fix concerning a main-exclusive (unreleased) new feature.)

  • This is a new feature or a refactoring, and the PR is based against the main branch.
  • This is a bug fix, and the PR is based against the earliest maintained branch in which the bug can be reproduced.
  • I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

Improve the `multi_source.connects_tried` feature test:
* Replace the main course from timing checks to checking timing
  * Not using a specific SLEEP eliminates the possibility (of failure)
    that it awakens before the `Connects_Tried` counter increments.
* In replacement-based tests of conventional views (SHOW & variants),
  assert the parallel values without distinguishing which is which
  * There were rare cases where both values end up equal (even though
    one was configured to tick more frequently than the other).
* Comment touchups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant