Skip to content

test: ensure PeriodicMetricReader waits for timed out export completion - #29

Open
Rajkaran-122 wants to merge 3 commits into
jack-berg:pmr-timeout-redesignfrom
Rajkaran-122:pmr-timeout-redesign
Open

Rajkaran-122 wants to merge 3 commits into
jack-berg:pmr-timeout-redesignfrom
Rajkaran-122:pmr-timeout-redesign

Conversation

@Rajkaran-122

Copy link
Copy Markdown

Add regression test from closed PR open-telemetry#8684 to verify that PeriodicMetricReader waits for timed out export completion before starting the next export.

This test ensures that when an export times out, the dedicated worker thread waits for the actual exporter operation to complete before processing the next batch, preventing concurrent exporter invocations which would violate the spec.

Adapted from the open-telemetry#8684 implementation to work with the current open-telemetry#8827 dedicated worker thread architecture.

@Rajkaran-122

Copy link
Copy Markdown
Author

@jack-berg sir PTAL .

- Fix tick coalescing regression by adding isTick field to Signal and only clearing tickPending for TICK signals
- Rename exporterTimeout_waitsForCompletionBeforeNextBatch to exporterTimeout_batchesCalledInOrder and use deterministic assertions
- Remove trivial builder timeout tests that only checked isNotNull()
- Add tickCoalescing_withSlowExporter regression test
@Rajkaran-122

Copy link
Copy Markdown
Author

@jack-berg sir PTAL.

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.

2 participants