-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
compaction-style
setting is broken
#11028
Comments
/assign @yuqi1129 |
@tabokie: GitHub didn't allow me to assign the following users: yuqi1129. Note that only tikv members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @yuqi1129 |
@tabokie I have test this configuration and it seems that only numeric is supported like numeric_enum_mod! {compaction_style_serde DBCompactionStyle {
Level = 0,
Universal = 1,
}} |
@yuqi1129 I prefer to use descriptive words for these config items, just like As for |
Change macro `numeric_enum_mod`: 1. serialize config value as string instead of int 2. accept int and string as config value for backwards compatibility Close tikv#11028 Signed-off-by: yuqi1129 <yuqi4733@gmail.com>
Change macro `numeric_enum_mod`: 1. serialize config value as string instead of int 2. accept int and string as config value for backwards compatibility Close tikv#11028 Signed-off-by: yuqi1129 <yuqi4733@gmail.com>
Change macro `numeric_enum_mod`: 1. serialize config value as string instead of int 2. accept int and string as config value for backwards compatibility Close tikv#11028 Signed-off-by: yuqi1129 <yuqi4733@gmail.com>
…11068) * config: Fix compaction-style setting is broken Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken, fix discussion Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken, fix discussion again Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken, fix test error Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken Change macro `numeric_enum_mod`: 1. serialize config value as string instead of int 2. accept int and string as config value for backwards compatibility Close #11028 Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken Change macro `numeric_enum_mod`: 1. serialize config value as string instead of int 2. accept int and string as config value for backwards compatibility Close #11028 Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * config: Fix compaction-style setting is broken Change macro `numeric_enum_mod`: 1. serialize config value as string instead of int 2. accept int and string as config value for backwards compatibility Close #11028 Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * merge master and use case macros to replace some code Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * rename numeric_enum_mod and move mirror type to macros Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * fix format in toml Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * remove enums in macro and merge test Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * replace numeric value with string value about config in `config-template.toml` and `test-template.toml` respectively Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * resolve disscussion about rate-limiter-mode Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * fix unittest about config-template.toml Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * revert changes thats serialize config value as str Signed-off-by: yuqi1129 <yuqi4733@gmail.com> * resolve discussion about comment content Signed-off-by: yuqi1129 <yuqi4733@gmail.com>
Bug Report
What version of TiKV are you using?
using tiup for deployment.
What operating system and CPU are you using?
It seems to be a machine-independent bug.
Steps to reproduce
The server will not start if the following settings are made.
What did you expect?
The reference looks like a correct description.
https://docs.pingcap.com/tidb/stable/tikv-configuration-file#compaction-style
What did happened?
If specify
compaction-style: 1
, it appears to start successfully.The text was updated successfully, but these errors were encountered: