Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cluster: destroy on main thread #14954
cluster: destroy on main thread #14954
Changes from 15 commits
b474d23
7b933b1
65ed52e
df9beaa
3af5aac
b647d0c
8c6266d
d8d639c
564b17a
8e380ce
bcad62e
50ec141
4746d53
0ca27ec
ec6eb4a
2f26bf4
63b063a
75c257a
dd4b151
968a611
d4dc8f8
ea86eb1
187179b
7782047
16e1aca
cf64576
40f2530
a5c2c3c
30c9751
13379da
cc0f944
8680fa7
5af6d37
93e0b0f
31fc603
f9cd68f
01a6557
eb01989
32381e6
19309cb
2d603b8
171b6d4
d1bb2d5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to do an explicit:
Would it be possible to have some tests that verify that repo the original crash and thus verify that this change fixes the issue of objects being deleted from the wrong thread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the explicit reset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test case:lambdai@ea86eb1#diff-871b9f8bd15bf182038c744edcfb5895b9cc22895469f5dc4d8b2a8947602496R793
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test reproduces the crash after the isThreadSafe() is added in Envoy::Grpc::AsyncStreamImpl::sendMessageRaw(). Thank you for the suggestion! Without thse assert(s), it is hard to prove it fixed.