Repository navigation
Windows: Fix infinite loop in tests when TMPDIR not defined. - #20027
Merged
Merged
Conversation
|
Hi @rectified95, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
rectified95
force-pushed
the
fix_deadlock
branch
from
February 18, 2022 01:16
da712c6 to
fc0714a
Compare
soulxu
reviewed
Feb 18, 2022
Member
|
thanks, this is much better than my one. |
soulxu
reviewed
Feb 18, 2022
Contributor
Author
|
/azp run |
|
Commenter does not have sufficient privileges for PR 20027 in repo envoyproxy/envoy |
Signed-off-by: Igor Klemenski <[email protected]>
rectified95
force-pushed
the
fix_deadlock
branch
from
February 18, 2022 21:35
fc0714a to
5f77c4a
Compare
Contributor
Author
|
Rebased before reviewer assigned to include recent CI fix in main. #20038 |
soulxu
approved these changes
Feb 19, 2022
soulxu
left a comment
Member
There was a problem hiding this comment.
LGTM, since it is already fixed the thing. just a comment to see if there is any improvement, but I could be wrong.
Thanks for your patience also!
Contributor
Author
|
@KBaichoo Can you merge the PR or tag someone with the right access to take a look? |
KBaichoo
enabled auto-merge (squash)
February 23, 2022 16:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Commit Message: Windows fix deadlock in unit tests when TMPDIR not defined.
Additional Description:
environment.cc::getTemporaryDirectory()callsmakeTempDir()if the system variableTMPDIRis not defined.This PR fixes commit #19713 which introduced an infinite loop for the above case.
TestEnvironment::temporaryDirectory()ends up callingmakeTempDir()and so on resulting in all tests hanging. (In the stacktrace, there are injected calls to theAtomicFileUpdaterwhich perhaps leads to the deadlock with all threads getting suspended.)Risk Level: Low
Testing: Manually edited environment variables, then ran any test.
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: Windows