Skip to content

event: fix race condition in DispatcherImpl#6701

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
mergeconflict:dispatcher_impl_race
Apr 24, 2019
Merged

event: fix race condition in DispatcherImpl#6701
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
mergeconflict:dispatcher_impl_race

Conversation

@mergeconflict
Copy link

Description: Fix race between initializeStats and run in DispatcherImpl by consolidating these to the dispatcher's thread.
Risk Level: low
Testing: dispatcher_impl_test and worker_impl_test, with --runs_per_test=1000 (in Google's environment where the issue was found).
Docs Changes: n/a
Release Notes: n/a
Fixes: #6699

Signed-off-by: Dan Rosen mergeconflict@google.com

Signed-off-by: Dan Rosen <mergeconflict@google.com>
@mergeconflict
Copy link
Author

/review @AndresGuedez @mattklein123

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with tiny nit.

/wait

Signed-off-by: Dan Rosen <mergeconflict@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Copy link
Contributor

@AndresGuedez AndresGuedez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mattklein123 mattklein123 merged commit 0111d66 into envoyproxy:master Apr 24, 2019
@mergeconflict mergeconflict deleted the dispatcher_impl_race branch April 25, 2019 13:38
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.

race condition in DispatcherImpl

3 participants