[MCOL-939] mysqld logs wrong columnstore version number Created: 2017-09-26 Updated: 2018-02-01 Resolved: 2018-01-19 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.0.11, 1.1.0, 1.1.2 |
| Fix Version/s: | 1.1.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | relnote | ||
| Issue Links: |
|
||||||||
| Sprint: | 2017-24, 2017-25, 2018-01, 2018-02 | ||||||||
| Description |
|
Looking in the mysqld.log during start up you will see the following: 170926 10:05:49 Columnstore: Started; Version: 1.0.2-1 It gets started version from the file dbcon/mysql/versionnumber.h Either we need to automate the number in this file, or eliminate it. |
| Comments |
| Comment by David Thompson (Inactive) [ 2017-09-26 ] | ||||||||||||||
|
ben, i think you worked on adding the version templating. I assume we have an engine method somewhere to retrieve this? | ||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-09-26 ] | ||||||||||||||
|
This is a duplicate of | ||||||||||||||
| Comment by Roman [ 2017-11-16 ] | ||||||||||||||
|
Greetings, What do you think about the solution? I reused data from VERSION and macroses from columnstore_version.cmake to generate dbconn/mysql/versionheader.h | ||||||||||||||
| Comment by Ben Thompson (Inactive) [ 2017-11-20 ] | ||||||||||||||
|
The propsed fix should work, however, I think I would prefer to use this as an oppurtunity to cleanup and fix how we handle getting version strings that currently happens in multiple locations in multiple methods. I would propose we move versionnumber.h.in from the current engine/dbcon/mysql to top level of engine source, and remove engine/dbcon/mysql/versionnumber.h and engine/utils/configcpp/versionnumber.h. I would also rename the generated strings from the header away from "idb_" to "columnstore_". This new generated versionnumber.h.in would replace the current text file releasenum generated here at engine/CMakeLists.txt:79
This file is still being used to currently get the same strings in a much uglier way via liboamcpp.cpp void Oam::getSystemSoftware(SystemSoftware& systemsoftware). And requires cleaning up the code where its used to use the values provided to versionnumber.h Also, not attached to name of versionnumber.h and would possible prefer something along the lines of columnstoreversion.h | ||||||||||||||
| Comment by Roman [ 2017-11-21 ] | ||||||||||||||
|
I'll reconcider the changes according with your advices. | ||||||||||||||
| Comment by Roman [ 2017-11-23 ] | ||||||||||||||
|
The file engine/build/releasenum is connected deeply then I thought. It is used by different shell scripts as a source of version information and even as marker in oamapps/serverMonitor/diskMonitor.cpp:225. Should I change this shells which are used for building packages while doing this issue or better make it separetely? | ||||||||||||||
| Comment by Roman [ 2017-11-26 ] | ||||||||||||||
|
There are two pull requests here and here that were made according with the advices. I decided to postpone releasenum removal until I get your opinion on this matter. | ||||||||||||||
| Comment by Ben Thompson (Inactive) [ 2017-12-01 ] | ||||||||||||||
|
I think its safe to remove releasenum as most references are from older files no longer used by ColumnStore and the few that are still used can be handled with these changes The file oamapps/serverMonitor/diskMonitor.cpp can replace: These files can all be removed: Also, remove the references to releasenum from CMake files. The references in softwareReport.sh can be replaced: | ||||||||||||||
| Comment by Roman [ 2017-12-12 ] | ||||||||||||||
|
Made a new pull request that contains all the mentioned changes. | ||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-12-15 ] | ||||||||||||||
|
New code to review | ||||||||||||||
| Comment by Ben Thompson (Inactive) [ 2017-12-19 ] | ||||||||||||||
|
Made couple of small cleanup changes for packaging and .gitignore. Test should verify fix in the mysqld log file as issue in description states and verify it is correct anywhere shown in other logs or mcsadmin as some changes were made so they all get the version information from same place now. | ||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2018-01-19 ] | ||||||||||||||
|
Build verified: Github source 1.1.3-1 Verified the mysql/db/*.err file showed the correct release version number: 180119 20:06:57 Columnstore: Started; Version: 1.1.3-1 the mariadb/columnstore/releasenum no longer exists | ||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-01 ] | ||||||||||||||
|
similar problem is observed on mcs v1.1.2-1 :
| ||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-02-01 ] | ||||||||||||||
|
Hi winstone, Yes it is. The fix will be in 1.1.3. | ||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-02-01 ] | ||||||||||||||
|
LinuxJedi, have just updated the Affects Version/s: list with 1.1.2-1 |