Fix TSAN json_run_localhost flake#13409
Conversation
|
|
|
test/cpp/qps/client_async.cc
Outdated
There was a problem hiding this comment.
is this a sync operation?
There was a problem hiding this comment.
I don't think so, the doc says this is "out of band".
FWIW, this is the same shutdown logic that has been used for a while. This just adds a shutdown check before the main loop, the issue was that things were getting shut down before we entered the main loop, and we didn't check first.
There was a problem hiding this comment.
Nice catch. Since this is just duplicated code from down below, can you take it out and make it a separate function or lambda or something?
There was a problem hiding this comment.
I ask because it looks scary to delete the ctx right after an async op has been performed "on" it. But if this is kosher, LGTM
There was a problem hiding this comment.
dgq to answer your question: TryCancel just happens purely asynchronously without any CQ tag returning or anything, so it's fine to do a TryCancel and then delete the ctx.
7d67f02 to
70a8762
Compare
|
|
|
test/cpp/qps/client_async.cc
Outdated
vjpai
left a comment
There was a problem hiding this comment.
Near LGTM, please just s/NULL/nullptr/
70a8762 to
7cf8d72
Compare
|
|
|
|
For future reference, can you avoid squashing or rebasing while reviewers are active? |
Fixes #13178