TSAN: fix data race when reading a histogram's sample count#16946
TSAN: fix data race when reading a histogram's sample count#16946mattklein123 merged 5 commits intoenvoyproxy:mainfrom
Conversation
This was introduced by envoyproxy#15908. We need to read a histogram's from the main thread to avoid data races between writes (from the main thread) and reads (from a worker thread). Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
|
This should fix the TSAN issue. Happy to move the helper code that does the read from the main thread into |
|
/assign @antoniovicente |
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
antoniovicente
left a comment
There was a problem hiding this comment.
Thanks!
Waiting for CI before merging.
|
Ok the ASAN failure seems unrelated: I'll merge main... |
Hmm nothing new in main plus it seems possibly transient: |
|
/retest |
|
Retrying Azure Pipelines: |
|
The remaining coverage failure is unrelated, so we can probably just merge: |
|
/retest |
|
Retrying Azure Pipelines: |
|
cc: @phlax for visibility on the CI/coverage failure (not sure if it's a global thing) |
…xy#16946) This was introduced by envoyproxy#15908. We need to read a histogram's from the main thread to avoid data races between writes (from the main thread) and reads (from a worker thread). Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
Commit Message: Fix TSAN issue caused from tests when reading histograms.
Additional Description:
This was introduced by #15908. We need to read a histogram's from
the main thread to avoid data races between writes (from the main
thread) and reads (from a worker thread).
Risk Level: Low.
Testing: Unit tests + TSAN should pass.
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA
Signed-off-by: Raul Gutierrez Segales rgs@pinterest.com