Skip to content

[exporter/otelarrow] Fix TestStreamUnsupported panic#46964

Open
singhvibhanshu wants to merge 2 commits intoopen-telemetry:mainfrom
singhvibhanshu:fix/otelarrow-panic
Open

[exporter/otelarrow] Fix TestStreamUnsupported panic#46964
singhvibhanshu wants to merge 2 commits intoopen-telemetry:mainfrom
singhvibhanshu:fix/otelarrow-panic

Conversation

@singhvibhanshu
Copy link
Copy Markdown
Contributor

@singhvibhanshu singhvibhanshu commented Mar 17, 2026

Fixes #46671

Description:
This fixes a race condition in TestStreamUnsupported that resulted in a panic (unexpected nil stream). If the background stream runner shut down before the test called mustSendAndWait, the stream evaluated to nil. This updates mustSendAndWait to gracefully return ErrStreamRestarting instead of panicking when the stream is nil.

Testing:
Ran make test and make lint in exporter/otelarrowexporter/.

Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>
@singhvibhanshu singhvibhanshu requested review from a team and jmacd as code owners March 17, 2026 12:32
@github-actions github-actions bot requested review from lquerel and moh-osman3 March 17, 2026 12:33
@singhvibhanshu singhvibhanshu changed the title [exporter/otelarrow] Fix TestStreamUnsupported panic [chore][otelarrow] Fix TestStreamUnsupported panic Mar 17, 2026
@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

/rerun

@singhvibhanshu singhvibhanshu changed the title [chore][otelarrow] Fix TestStreamUnsupported panic [exporter/otelarrow] Fix TestStreamUnsupported panic Mar 17, 2026
@songy23 songy23 added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 18, 2026
@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

Hi there!
Kindly have a look on this.
I am happy to address any feedbacks on this.
Thanks!

@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

Hi there!
Any updates on this?
I am looking forward to addressing further feedback (if any).
Waiting for code owners (@jmacd, @codeboten, @lquerel, @moh-osman3) on this.
Kindly let me know if any further changes are required.
Thanks!

@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

Hi team!
Its been a while since I raise this PR.
Kindly have a look.
Thanks!

@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

Kindly take a look @jmacd, @lquerel, @codeboten when you get a chance
Thank you!

@singhvibhanshu
Copy link
Copy Markdown
Contributor Author

@jmacd,
Kindly take a look when you get a chance.
Thank you!
cc @lquerel, @codeboten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exporter/otelarrow Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[exporter/otelarrow] TestStreamUnsupported hit a panic

3 participants