[MCOL-3744] Modify mcssystemready() to work with SKIP_OAM_INIT Created: 2020-01-24  Updated: 2020-02-28  Due: 2020-01-24  Resolved: 2020-02-11

Status: Closed
Project: MariaDB ColumnStore
Component/s: MDB Plugin
Affects Version/s: 1.4.2
Fix Version/s: 1.4.3

Type: Bug Priority: Blocker
Reporter: David Hall (Inactive) Assignee: David Hall (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2020-1, 2020-2

 Description   

SkySQL blocks because mcssystemready() always returns false when SKIP_OAM_INIT is set. The reason is because the function checks oam for ACTIVE state as part of it's test.



 Comments   
Comment by David Hall (Inactive) [ 2020-02-11 ]

This was originally placed in a special 1.4.2 branch for SkySQL. It is also fixed in 1.4.3. This function worked fine so long as normal OAM installation was use, but SKY is bypassing OAM. To test, you must have SKIP_OAM_INIT setr or it follows the old path.

Comment by Daniel Lee (Inactive) [ 2020-02-11 ]

Build verified: 1.4.3-1 source
server
commit 9bd5e14f4de1402c6cd4a3f81564887c1213c9e1
engine
commit 3eed0aaae40a28fd4a16d382e7b9e27621012cc2

testing notes:

SKIP_OAM_INIT is a environment variable
make sure shutdown ColumnStore first so that I will not start processes back automatically
When MCS is down, the query "select mcssystemready();" will return connection error, as expected.

Generated at Thu Feb 08 02:45:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.