Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vitlibar
Copy link
Member

@vitlibar vitlibar commented Oct 10, 2021

Changelog category:

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix shutdown of AccessControlManager. Now there can't be reloading of the configuration after AccessControlManager has been destroyed. This PR fixes the flaky test test_user_directories/test.py::test_relative_path

…on reloading after AccessControlManager has been destroyed.
@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Oct 10, 2021
/// Stop reloading of the main config. This must be done before `global_context->shutdown()` because
/// otherwise the reloading may pass a changed config to some destroyed parts of ContextSharedPart.
main_config_reloader.reset();

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose the periodic config reloading should be stopped on shutdown earlier.

About shutting down of AccessControlManager see also #27804.

@kitaisreal kitaisreal self-assigned this Oct 10, 2021
@kitaisreal kitaisreal merged commit 85f280f into ClickHouse:master Oct 10, 2021
@vitlibar vitlibar deleted the fix-access-control-shutdown branch October 12, 2021 14:05
kitaisreal added a commit that referenced this pull request Oct 12, 2021
Backport #29951 to 21.8: Fix shutdown of AccessControlManager
kitaisreal added a commit that referenced this pull request Oct 12, 2021
Backport #29951 to 21.9: Fix shutdown of AccessControlManager
kitaisreal added a commit that referenced this pull request Oct 12, 2021
Backport #29951 to 21.3: Fix shutdown of AccessControlManager
alexey-milovidov added a commit that referenced this pull request Oct 16, 2021
Backport #29951 to 21.10: Fix shutdown of AccessControlManager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants