Skip to content

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


// 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