[MCOL-3870] Postconfigure reports false positive that Server is running Created: 2020-03-04 Updated: 2023-10-26 Resolved: 2020-03-19 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.4.3 |
| Fix Version/s: | 1.4.4, 1.5.1 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2020-4, 2020-5 |
| Description |
|
Sometime when running PostConfigure, it will exit with: |
| Comments |
| Comment by David Hall (Inactive) [ 2020-03-04 ] |
|
QA: It may not break for you. PostConfigure uses a system call to 'pidof' to determine if mysqld is running. It streams the result of the call into a buffer as a string, then converts that string to a number. If > 0, then mysqld is already running. The problem is, the buffer was not zeroed out, so if mysqld is not running, what ever happens to be in that buffer is used for the pid. In many cases, that will be 0 and nothing breaks. But, sometimes it's other than zero and it falsely assumes mysqld is running and thus exits. |
| Comment by Daniel Lee (Inactive) [ 2020-03-17 ] |
|
Build verified: 1.5.0-1 BB engine commit: 1.4.4 is not yet available in buildbot. In release 1.4.3, when installing RPM packages, server mysqld actually starts automatically and postConfigure would not run. For testing this ticket, I need to stop mysqld first, then test. I ran regression test only, by installing ColumnStore few time and make sure postConfigure does not report false positive. |
| Comment by Daniel Lee (Inactive) [ 2020-03-19 ] |
|
Build verified: 1.4.4.-1 source /root/ColumnStore/buildColumnstoreFromGithubSource/server Revert "make columnstore maturity gamma" This reverts commit e4a0372cd08a53f97a62d6b6ef32114b553cacb7. /root/ColumnStore/buildColumnstoreFromGithubSource/server/engine Merge pull request #1113 from pleblanc1976/develop-1.4 Bumped version num to 1.4.4-1 |