[MDEV-22243] type_test.type_test_double fails with 'NUMERIC_SCALE NULL' Created: 2020-04-14 Updated: 2023-11-19 Resolved: 2023-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.5.2, 11.0 |
| Fix Version/s: | 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Otto Kekäläinen | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
On current 10.5 master this test is not at all visible (e.g. http://buildbot.askmonty.org/buildbot/builders/kvm-deb-bionic-amd64/builds/4413/steps/mtr/logs/stdio) because Debian packaging was omitting usr/lib/mysql/plugin/type_test.so and this test did simply not run before. |
| Comments |
| Comment by Otto Kekäläinen [ 2020-04-23 ] | ||||||||||||||||||||||||||
|
The PR https://github.com/MariaDB/server/pull/1506 will be pending until this is fixed. | ||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2020-04-29 ] | ||||||||||||||||||||||||||
|
Investigation so far: This is reproducible in a docker container with ubuntu:bionic, compile with debian/autobake-dev.sh. The value of NULL/31 comes from sql/sql_show.cc:5722
More specifically from Field_real::information_schema_numeric_attributes:
If one looks at NOT_FIXED_DEC, it is defined in my_global.h as:
Some background about this switch provided by serg: The difference in test results is because in one case NOT_FIXED_DEC is set to DECIMAL_NOT_SPECIFIED, while during debian compilation it's set to FLOATING_POINT_DECIMALS, which happens to equal the actual precision of 31 that the field's "dec" variable is set to. The test failure can be resolved by doing a #define MYSQL_SERVER in plugin/type_test/plugin.cc right before my_global.h include. This can't possible be correct as we're building a plugin, not the server. However it is unclear why during a build that does not involve debian packaging, the MYSQL_SERVER flag seems to be set to true when compiling this plugin. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2023-03-19 ] | ||||||||||||||||||||||||||
|
This test is still failing..
| ||||||||||||||||||||||||||
| Comment by Nicholas Othieno [ 2023-06-05 ] | ||||||||||||||||||||||||||
|
Manually tested on Ubuntu 20.04, and the test passed:
| ||||||||||||||||||||||||||
| Comment by Nicholas Othieno [ 2023-06-05 ] | ||||||||||||||||||||||||||
|
Debian CI build log shows that the test runs and that it is passing. Source: https://buildbot.mariadb.org/#/builders/35/builds/24954/steps/7/logs/stdio
| ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2023-07-28 ] | ||||||||||||||||||||||||||
|
I confirm that the test is now passing on buildbot.mariadb.org, e.g. https://buildbot.mariadb.org/#/builders/534/builds/8085/steps/7/logs/stdio
| ||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-09-17 ] | ||||||||||||||||||||||||||
|
otto, so shall https://github.com/MariaDB/server/pull/1506 be merged and this MDEV closed? | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2023-10-05 ] | ||||||||||||||||||||||||||
|
PR https://github.com/MariaDB/server/pull/1506 was merged yesterday, thus going into version 11.3.0. | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2023-10-07 ] | ||||||||||||||||||||||||||
|
After re-enabling the test if still fails with the exact same error on all tested architectures at https://launchpad.net/~otto/+archive/ubuntu/mariadb/+builds?build_text=&build_state=all | ||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2023-10-09 ] | ||||||||||||||||||||||||||
|
There where several reasons why the test failed:
Fixed by changing the correct class variable and make the constructors | ||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2023-10-09 ] | ||||||||||||||||||||||||||
|
I confirm https://github.com/MariaDB/server/commit/9d19b6526917c94ca03ef1b4c57152882b192cfe fixed this test failure - it is no longer visible on any of my test builds on Launchpad. |