Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[testbed] Fix loadgenerator race condition (open-telemetry#32351)
Fixes a race condition in testbed's default load generator (`ProviderSender`). The fix changes the behavior of how logging works for the `ProviderSender`. Before this PR, the code will try to log errors if the previous error is not the same and it would try to do this across goroutines. Now, each error will be logged if the previous error is not the same for each goroutine. Alternatively, we can also build a logger using bloom filter to try to log each error once though I am not sure if that would be required. This PR offers a quick fix while keeping the behavior reasonably close to the current behavior. Closes open-telemetry#32326 **Link to tracking Issue:** open-telemetry#32326 **Testing:** Follow the steps in the tracking issue.
- Loading branch information