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

feat(init) checking that core shared dictionaries exist #2466

Closed
wants to merge 4 commits into from

Conversation

subnetmarco
Copy link
Member

  • Checking that the core shared dictionaries exist in the NGINX configuration.

Closes #2350.

@subnetmarco subnetmarco force-pushed the feat/init-shared-dicts branch from 8b58bad to f438e3f Compare April 28, 2017 03:49
Copy link
Member

@thibaultcha thibaultcha left a comment

Choose a reason for hiding this comment

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

This is definitely lacking tests though...

kong/kong.lua Outdated
-- Check shared dictionaries
for _, dict in ipairs(DICTS) do
if not ngx.shared[dict] then
error("cannot find shared dictionary: "..dict)
Copy link
Member

Choose a reason for hiding this comment

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

I think we should instruct the user how to fix this issue:

"missing shared dict in Nginx configuration, are you "      ..
"using a custom template? Make sure the 'lua_shared_dict' " ..
dict .. " [SIZE];" directive is defined."

@thibaultcha thibaultcha added pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done. and removed pr/status/please review labels Apr 28, 2017
@subnetmarco subnetmarco added pr/status/please review and removed pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done. labels Apr 28, 2017
@thibaultcha
Copy link
Member

Merged to release/0.10.2 with a few edits.

@thibaultcha thibaultcha deleted the feat/init-shared-dicts branch April 29, 2017 01:54
thibaultcha pushed a commit that referenced this pull request Apr 29, 2017
Signed-off-by: Thibault Charbonnier <thibaultcha@me.com>

Applied with stronger test (more reliable in case of failure), style
changes and error message changes for readability.

From #2466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants