Skip to content

[BUG] It is wrong to rewrite config rename-command and lead kvrocks to fail to restart #428

@iushas

Description

@iushas

Describe

If your kvrocks config file has multiple rename-command, kvrocks would generate duplicate configuration items after executing config rewrite, whatever automatically or manually, and leads kvrocks to fail to restart.

It is introduced in #272

one example

rename-command debug                               290033_dont_run_debug_rudely
rename-command bgsave                              290033_dont_run_bgsave_rudely
rename-command shutdown                            290033_dont_run_shutdown_rudely
rename-command keys                                290033_dont_run_keys_rudely
rename-command debug                               290033_dont_run_debug_rudely

there are two debug rename-commands, so there will be the following error logs.

* Failed to load config, err: at line: #L19, err: No such command in rename-command

How to fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions