-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OTLP receiver had a bug due to which it could generate data after Shutdown() was returned. It was visible in TestShutdown, with the following symptoms (it was a racy bug): === RUN TestShutdown otlp_test.go:871: Error Trace: otlp_test.go:871 Error: Not equal: expected: 4 actual : 5 Test: TestShutdown otlp_test.go:871: Error Trace: otlp_test.go:871 Error: Not equal: expected: 6 actual : 7 Test: TestShutdown --- FAIL: TestShutdown (0.49s) I added a Helper which allows to wait until all in-flight operations are complete before the Shutdown() function returns. The Helper can be used by other components too in the future.
- Loading branch information
1 parent
e6319ac
commit 30ca26c
Showing
8 changed files
with
7,265 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.