-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(core) ctx dropped in log phase #8604
Conversation
For people who want to review this PR: |
Should we keep the context for all phases? This way seems a bit unreliable. Is there any other way that we can share data for all phases, except shared memory and database? |
@fffonion suggests recovering |
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.
minor comment, otherwise look good to me. feel free to merge after addressed (and squashed)
Log phase does recover ngx.ctx for some of functions(with wrapper function), however for those functon not wrapped, they will see an empty ngx.ctx, and cause unreadable error message for `check_phase`. This is an ad hoc fix for `check_phase`. Fix #8598
This reverts commit ad4ac2b.
This reverts commit 6d53fa0.
Co-authored-by: Wangchong Zhou <[email protected]>
ca39411
to
8882efc
Compare
Rebased the PR. Hope that will fix the test. |
Log phase does recover ngx.ctx for some of functions(with wrapper function), however for those functions not wrapped, they will see an empty ngx.ctx, and cause an unreadable error message for
check_phase
.This is an ad hoc fix for
check_phase
.Fix #8598