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

Disable box.cfg #445

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Conversation

Serpentian
Copy link
Contributor

@Serpentian Serpentian commented Nov 15, 2023

This patchset cherry picks enum configuration type from disable user management PR, introduces option to disable box.cfg on storage and completely drops calling box.cfg on routers.

There won't be any better time for breaking change of disabling box.cfg on routers than release of Tarantool 3.0.0

Closes #353
Closes #428

@Serpentian Serpentian force-pushed the gh-428-disable-box-cfg branch 2 times, most recently from ae87d5f to 140fb0e Compare November 15, 2023 18:20
@Serpentian Serpentian marked this pull request as ready for review November 15, 2023 18:32
@Serpentian Serpentian force-pushed the gh-428-disable-box-cfg branch 2 times, most recently from a7951d4 to eaf7224 Compare November 20, 2023 10:17
Copy link
Collaborator

@Gerold103 Gerold103 left a comment

Choose a reason for hiding this comment

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

Thanks for the patch, really nice work!

test/storage-luatest/box_cfg_mode_test.lua Show resolved Hide resolved
vshard/storage/init.lua Outdated Show resolved Hide resolved
example/router.lua Outdated Show resolved Hide resolved
test/failover/cluster_changes.result Outdated Show resolved Hide resolved
test/instances/router.lua Outdated Show resolved Hide resolved
test/instances/router.lua Outdated Show resolved Hide resolved
vshard/router/init.lua Outdated Show resolved Hide resolved
vshard/router/init.lua Outdated Show resolved Hide resolved
@Serpentian Serpentian assigned Serpentian and unassigned Gerold103 Nov 23, 2023
@Serpentian Serpentian force-pushed the gh-428-disable-box-cfg branch from eaf7224 to 3119c4b Compare December 6, 2023 09:25
Part of tarantool#428

@TarantoolBot document
Title: vshard: `box_cfg_mode` cfg option

The option can be specified at the root level and regulates, whether
vshard calls box.cfg, when vshard.storage is invoked.

When specified to 'auto' (default), vshard configures box.cfg on its
own. When specified to 'manual', it's user's responsibility to call
box.cfg prior to vshard's configuration
In the following commit box.cfg in router will be disabled, it won't
accept any box.cfg options and will through error, if some of them
are encountered.

Let's explicitly use replication_timeout, where it's needed, and don't
set it inside vtest during config generation.

Needed for tarantool#353
Needed for tarantool#428

NO_DOC=test
@Serpentian Serpentian force-pushed the gh-428-disable-box-cfg branch from 3119c4b to 4b56aae Compare December 6, 2023 09:31
There is no reason for router to have box configured. It needs neither
storage nor listening on a port. This is breaking change, so user's
code, which relies on vshard.router.cfg to call box.cfg must be changed.

Closes tarantool#353
Closes tarantool#428

@TarantoolBot document
Title: vshard: disable box.cfg on routers

Since vshard 0.1.25 vshard.router.cfg doesn't call box.cfg and this must
be done manually outside of vshard.
@Serpentian Serpentian force-pushed the gh-428-disable-box-cfg branch from 4b56aae to 3ef4f80 Compare December 6, 2023 09:49
@Serpentian Serpentian requested a review from Gerold103 December 6, 2023 09:59
@Serpentian Serpentian assigned Gerold103 and unassigned Serpentian Dec 6, 2023
Copy link
Collaborator

@Gerold103 Gerold103 left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

@Gerold103 Gerold103 merged commit bc1c3c4 into tarantool:master Dec 6, 2023
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.

Drop box.cfg from router Allow to not invoke box.cfg() when vshard.*.cfg() is called
2 participants