[MDEV-22348] main.default_storage_engine test uses common install.db datadir for startup Created: 2020-04-23 Updated: 2020-04-23 Resolved: 2020-04-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 5.5, 10.1, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4.13, 10.5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The test runs the MTR bootstrap command (MYSQLD_BOOTSTRAP_CMD) without changing the datadir. The command is supposed to fail, but not right away – the server will attempt to start up, so it can conflict with other tests or logic which use the same datadir in parallel (as it is common for all parallel workers). In a worse scenario, if the test doesn't work as expected, it may damage install.db datadir which is important to keep clean and healthy for resetting the environment for tests. The test should be using its own unique datadir.
|
| Comments |
| Comment by Marko Mäkelä [ 2020-04-23 ] | |||||||||||||||||||||
|
Here is a demonstration of the problem on a cmake -DCMAKE_BUILD_TYPE=Debug build:
If I replace the assertion with a message, it will report 520 "leaked" bytes. But cmake -DWITH_ASAN does not report any leaks. | |||||||||||||||||||||
| Comment by Michael Widenius [ 2020-04-23 ] | |||||||||||||||||||||
|
The propose fix, fixes the issue but it's the wrong way to do it. All other similar tests works by stopping the server, run mysqld and then restarting it. After talking with Elena I got to know that the problem is that MYSQLD_BOOTSTRAP_CMD has the wrong parameters because of previous tests. | |||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-04-23 ] | |||||||||||||||||||||
|
Monty pushed his own patch, in 10.4+: FWIW, I don't think it will fix anything, because | |||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-04-23 ] | |||||||||||||||||||||
|
The (safemalloc-but-not-ASAN-reported) leak on failed Aria startup was fixed in 10.4. |