Repository navigation
Conversation
Member
|
I'll try to take a look. The interaction of the cache and redirects is ... subtle. The key thing is to not break the behavior when there is no redirect. |
Contributor
Author
Member
|
IIUC, your case is grab cache write lock failed cace. So the first write vc is nullptr. Then So what if we grab write lock successfully in the first time. Will it recreate a new cache_write_vc without releasing the old one (memleaking ?). |
Member
|
Please squash your commits |
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.
I got ats crashed in the step below:
proxy.config.http.number_of_redirections INT 3,proxy.config.http.redirect.actions STRING default:follow.http://ip/path(no domain in it), and ats get cache read miss for the url os returned.Here is the call stack
history
I think is the reason is in
HttpTransact::OSDNSLookuptrafficserver/proxy/http/HttpTransact.cc
Lines 1960 to 1965 in 134fb60
And
HttpTransact::DecideCacheLookuptrafficserver/proxy/http/HttpTransact.cc
Lines 2091 to 2097 in 134fb60
which decide directly dong cache write without geting cache write lock that caused the crash.