[MDEV-23893] If we set expire_logs_days=p in my.cnf, 10.3.24 started successfully without giving error. Created: 2020-10-06 Updated: 2021-10-06 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.3.24, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Nilnandan Joshi | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | beginner-friendly | ||
| Description |
|
Hi Team, In MariaDB 10.3.23, if we set expire_logs_days=p in my.cnf, server will not start and gives error like "unknown variable" because as per the doc, datatype of this variable is numeric.
But in MariaDB 10.3.24, if we do the same, it didn't give error and server is started successfully without any error. |
| Comments |
| Comment by Alice Sherepa [ 2020-10-06 ] | |||||||||||||||||||||
|
Indeed, 10.3-10.5 server starts with --expire_logs_days=p, but it is not changed in 10.3.24, but in 10.3.3. | |||||||||||||||||||||
| Comment by Nilnandan Joshi [ 2020-10-07 ] | |||||||||||||||||||||
|
Isn't there mentioned about suffix and not prefix? Here we are giving P as prefix and still it didn't give any warning or error. Even if we give any other value like "HJH" something, server didn't start and no error mentioned in mariadb error log. I've tested it with 10.3.24. You are right that the same behaviour is in 10.3.24. (it was typo) but the question is if we put any other value like expire_logs_days=abc or expire_logs_days=def why it didn't give any warning or error? In this server didn't start but nothing in mariadb error log. | |||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-10-07 ] | |||||||||||||||||||||
|
I get
immediately after attempt to start (not in a log) | |||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-07 ] | |||||||||||||||||||||
|
It is documented that =<number><unit> works for command line options. That =<unit><garbage> works — this could be really unexpected. Better to fix it. Still there's a question, =5garbage — should this work or not? This is =<number><unit><garbage>, not as clear-cut as two previous cases. | |||||||||||||||||||||
| Comment by Nilnandan Joshi [ 2020-10-08 ] | |||||||||||||||||||||
|
With 5garbage value, server is getting start and set value to 99.
| |||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-11-04 ] | |||||||||||||||||||||
|
I know that it works. The value is 5G, five gigabytes. The question was should it work? Do we want it to? It's probably better if it wouldn't | |||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-07-29 ] | |||||||||||||||||||||
|