-
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(conf) drop lua_code_cache option #2854
Conversation
This option no longer works, but triggers a lot of support questions.
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.
Looks good to me
Before merging this, I would be very much inclined to reproduce the errors (it should be fairly easy to reproduce), and keep track of them somewhere. |
Spent some time on there, and init_worker not being run when lua_code_cache is false is our issue. A lot of modules initialized in init_worker should be initialized in init instead, but cannot because of lua-resty-worker-events iirc. Regardless, considering the implications of disabling this directive and how limiting it is (lack of ngx.semaphore, FFI contexts, and the number of lua-resty modules depending on them), it might indeed be better to simply drop support for it, I concur. |
@thibaultcha I didn't fully understand what you meant by this? considering your follow up message, it it good to merge now? if not please elaborate on what you meant by the above. |
@Tieske I meant to spawn a lua_code_cache disabled instance and see how it behave. While I very much like the idea of an instance on which developers can freely edit it without having the reload Kong, I think the trouble of maintaining such a convenience isn't worth the currently needed refactor nor the potential limitations we could encounter in the future... I say: merge! |
This option no longer works, but triggers a lot of support
questions.