Skip to content
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(router/atc): check expression building error #9480

Merged
merged 3 commits into from
Oct 9, 2022

Conversation

chronolaw
Copy link
Contributor

@chronolaw chronolaw commented Sep 28, 2022

Summary

Fix FT-3429

@chronolaw chronolaw marked this pull request as ready for review September 28, 2022 04:08
@chronolaw chronolaw requested a review from a team as a code owner September 28, 2022 04:08
@chronolaw chronolaw added this to the 3.0.1 milestone Sep 28, 2022
spec/01-unit/08-router_spec.lua Outdated Show resolved Hide resolved
kong/router/atc_compat.lua Outdated Show resolved Hide resolved
kong/router/atc_compat.lua Outdated Show resolved Hide resolved
new_updated_at = max(new_updated_at, route.updated_at or 0)

else
ngx_log(ngx_WARN, err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be an error level log, also we should add more error context to the message.

Copy link
Contributor Author

@chronolaw chronolaw Oct 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the err returned by add_atc_matcher has enough information of context. Do we need more?

chronolaw added a commit that referenced this pull request Oct 6, 2022
add test case

update test case

update changelog

check rebuilding flag

remove rebuilding check

integration test case

test code clean

add #db tag

remove ngx.sleep

fix error message

use ngx.ERR level
@chronolaw chronolaw force-pushed the fix/handle_router_rebuild_error branch from 2844494 to 16c8e5a Compare October 8, 2022 02:04
kong/router/atc_compat.lua Outdated Show resolved Hide resolved
kong/router/atc_compat.lua Outdated Show resolved Hide resolved
@dndx dndx merged commit 3cd28c7 into master Oct 9, 2022
@dndx dndx deleted the fix/handle_router_rebuild_error branch October 9, 2022 06:16
chronolaw added a commit that referenced this pull request Oct 9, 2022
dndx pushed a commit that referenced this pull request Oct 10, 2022
* rename `atc_compat.lua` to `compat.lua`
* add a new file `expressions.lua`
* move lots of logic into `atc.lua`
* rename `get_atc` to `get_expression`
* rename `route_priority` to `get_priority`
* rename `atc_escape_str `to `escape_str`
* remove function `paths_resort`
* transplant #9327 
* transplant #9329 
* transplant #9343
* transplant #9346
* transplant #9357
* transplant #9389
* transplant #9394
* transplant #9451
* transplant #9480
oowl pushed a commit to oowl/kong that referenced this pull request Oct 12, 2022
* rename `atc_compat.lua` to `compat.lua`
* add a new file `expressions.lua`
* move lots of logic into `atc.lua`
* rename `get_atc` to `get_expression`
* rename `route_priority` to `get_priority`
* rename `atc_escape_str `to `escape_str`
* remove function `paths_resort`
* transplant Kong#9327 
* transplant Kong#9329 
* transplant Kong#9343
* transplant Kong#9346
* transplant Kong#9357
* transplant Kong#9389
* transplant Kong#9394
* transplant Kong#9451
* transplant Kong#9480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants