[MCOL-3420] Changing systemlang to an unrecognized string causes CS to not start up. Created: 2019-08-08 Updated: 2020-11-12 Resolved: 2020-03-19 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.2.5 |
| Fix Version/s: | 1.4.4, 1.5.1 |
| Type: | Task | Priority: | Major |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Setting the systemlang in Columnstore.xml to an unrecognized string will cause the system to not start due to an uncaught exception crashing WorkerNode. In utils/funcexp/utilsutf8..h, idb_setlocale() attempts to set the C++ locale with the return value from setlocale(). If setlocale() fails, which it will with a bad string, then the c++ locale is set with a NULL string, which throws. We need to do the c++ locale after we test for NULL. |
||
| Issue Links: |
|
||||||||
| Sprint: | 2020-4, 2020-5 | ||||||||
| Comments |
| Comment by David Hall (Inactive) [ 2020-03-05 ] |
|
QA: To test, set systemlang in the XML to something not accepted. I used "Bogus" Fixed: Should start up, raise an alarm and log "Failed to set locale Bogus : Setting to 'C'. Critical alarm generated" |
| Comment by Daniel Lee (Inactive) [ 2020-03-17 ] |
|
Build verified: 1.5.0-1 BB engine commit: 1.4.4-1 is not yet available in buildbot. crit.log Mar 17 18:26:57 localhost ProcessManager[12140]: 57.944436 |0|0|0| E 17 CAL0001: Failed to set locale aloha : Setting to 'C'. Critical alarm generated Critical Active Alarms: AlarmID = 36 |
| 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 |