-
Notifications
You must be signed in to change notification settings - Fork 411
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
Should check whether the dirs under "storage" configuration is valid string array #4093
Labels
affects-4.0
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
This bug affects the 5.4.x(LTS) versions.
component/storage
severity/moderate
type/bug
The issue is confirmed as a bug.
Comments
JaySon-Huang
added
type/bug
The issue is confirmed as a bug.
affects-4.0
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
This bug affects the 5.4.x(LTS) versions.
labels
Feb 22, 2022
treat a single string as an array with one item? |
@fuzhe1989 I think explicit require an array would be better. In the old configuration, we use this for the multi-disks feature ...
while in the new configuration, we use this for multi-disks feature ...
I don't want to see users mistakenly set sth like this in the future.... It is terrible...
|
12 tasks
ti-chi-bot
pushed a commit
that referenced
this issue
Feb 24, 2022
This was referenced Feb 24, 2022
ti-chi-bot
added a commit
that referenced
this issue
Apr 14, 2022
ti-chi-bot
added a commit
that referenced
this issue
Apr 26, 2022
ti-chi-bot
added a commit
that referenced
this issue
Jun 16, 2022
ti-chi-bot
added a commit
that referenced
this issue
Jun 19, 2022
ti-chi-bot
added a commit
that referenced
this issue
Sep 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-4.0
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
This bug affects the 5.4.x(LTS) versions.
component/storage
severity/moderate
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
If the user set the config file with
If
storage.main.dir
,storage.latest.dir
,storage.raft.dir
is a string instead of string-array, TiFlash now consider it is an empty array without any warning/exception.https://github.com/pingcap/tics/blob/fb00fbba50d802164a975daa3107478888ae0e25/dbms/src/Server/StorageConfigParser.cpp#L124-L135
We should check whether the dirs under "storage" configuration is a string array or not. If not, make TiFlash quit and tell the users to correct their configuration file.
In one scenario, users set ...
in their cluster, after upgrading to v5.4.0, they replace those configurations with ...
with the later configuration, TiFlash consider "storage.raft.dir" as an empty array and set it to "/data0/db/kvstore", which is not the same as upgrade before.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: