Skip to content

process wide: fix concurrent callers#21120

Merged
jmarantz merged 4 commits intomainfrom
fix-pw
May 3, 2022
Merged

process wide: fix concurrent callers#21120
jmarantz merged 4 commits intomainfrom
fix-pw

Conversation

@mattklein123
Copy link
Member

@mattklein123 mattklein123 commented May 2, 2022

2 racing callers can leave 1 caller thinking things are
initialized while the other caller is still initializing.
This change uses a mutex to fix that race.

Risk Level: Low
Testing: Existing tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

2 racing callers can leave 1 caller thinking things are
initialized while the other caller is still initializing.
This change uses absl::call_once to fix that race.

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21120 (comment) was created by @mattklein123.

see: more, trace.

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Member Author

@jmarantz thanks for the review and great callout! Updated.

Copy link
Contributor

@jmarantz jmarantz 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 one minor nit :)

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Member Author

OK updated thanks for the reviews.

@jmarantz
Copy link
Contributor

jmarantz commented May 3, 2022

thanks!

@jmarantz jmarantz merged commit 5afc6fa into main May 3, 2022
@mattklein123 mattklein123 deleted the fix-pw branch May 3, 2022 14:32
mattklein123 added a commit that referenced this pull request May 3, 2022
2 racing callers can leave 1 caller thinking things are
initialized while the other caller is still initializing.
This change uses a mutex to fix that race.

Risk Level: Low
Testing: Existing tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Matt Klein <mklein@lyft.com>
jpsim added a commit to envoyproxy/envoy-mobile that referenced this pull request May 3, 2022
https://github.com/envoyproxy/envoy/compare/em-cherry

This pulls in envoyproxy/envoy#21120 on top
of the version of Envoy we're currently using.

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim added a commit to envoyproxy/envoy-mobile that referenced this pull request May 3, 2022
https://github.com/envoyproxy/envoy/compare/em-cherry

This pulls in envoyproxy/envoy#21120 on top
of the version of Envoy we're currently using.

Signed-off-by: JP Simard <jp@jpsim.com>
ravenblackx pushed a commit to ravenblackx/envoy that referenced this pull request Jun 8, 2022
2 racing callers can leave 1 caller thinking things are
initialized while the other caller is still initializing.
This change uses a mutex to fix that race.

Risk Level: Low
Testing: Existing tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Matt Klein <mklein@lyft.com>
jpsim added a commit that referenced this pull request Nov 29, 2022
https://github.com/envoyproxy/envoy/compare/em-cherry

This pulls in #21120 on top
of the version of Envoy we're currently using.

Signed-off-by: JP Simard <jp@jpsim.com>
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.

2 participants