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 HBase test flakiness #1615

Merged
merged 6 commits into from
Dec 18, 2024
Merged

Conversation

robsunday
Copy link
Contributor

Description:

Part of fix for #1605

HBase is doing a lot of things after all the ports are open and before it completes its initialization. Because of this the test may be flaky.

Scope

  • Changed condition for detecting container start from checking ports to checking log. This may require us to update regexp when testing HBase in different version, but it improved stability a lot.
  • Fine tuning some assertion messages, including dumping all data points with attributes when matching attributes fails
  • Cleanup of TargetSystemIntegrationTest class

@@ -125,45 +123,6 @@ void endToEndTest(@TempDir Path tmpDir) {
verifyMetrics();
}

// TODO: This implementation is DEPRECATED and will be removed once all integration tests are
// migrated to MetricsVerifier
protected void waitAndAssertMetrics(Iterable<Consumer<Metric>> assertions) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[for reviewer] this is not related to this PR, but is not used anymore.

"data point attributes '%s' for metric '%s' must match exactly one of the attribute sets '%s'",
dataPointAttributes, actual.getName(), Arrays.asList(matcherGroups));
"data point attributes '%s' for metric '%s' must match exactly one of the attribute sets '%s'.\nActual data points: %s",
dataPointAttributes, actual.getName(), Arrays.asList(matcherGroups), dataPoints);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The toString() probably leaves a little be desired, but is workable.

@breedx-splk breedx-splk merged commit 426adfc into open-telemetry:main Dec 18, 2024
14 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.

4 participants