-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 (#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 #32326 **Link to tracking Issue:** #32326 **Testing:** Follow the steps in the tracking issue.
- Loading branch information
Showing
1 changed file
with
26 additions
and
46 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