[MCOL-4056] WES cannot handle configuration change of dbroot count without restart Created: 2020-06-12  Updated: 2021-01-17

Status: Closed
Project: MariaDB ColumnStore
Component/s: writeengine
Affects Version/s: 1.2.5, 1.4.3, 1.5.3
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Ben Thompson (Inactive) Assignee: Ben Thompson (Inactive)
Resolution: Unresolved Votes: 1
Labels: None


 Description   

Related to MCOL-3999 discovered when failover was trying to reinit WES and not restart.
FileOp::initDbRootExtentMutexes( )
only creates mutexes for dbroots the first time its executed and only creates mutexes
if m_DbRootAddExtentMutexes.size() == 0
This means that if a dbroot is added to a module and WES is not restarted you will see this error in logging:
Jun 12 11:32:31 testPM3 writeengine[16121]: 31.763854 |0|0|0| E 19 CAL0001: we_readthread caught exception boost unique_lock has no mutex: Operation not permitted

Proposed fix is to check if number of dbroots is not equal to number of extent mutexes and reset and rebuild if a change is detected.



 Comments   
Comment by Ben Thompson (Inactive) [ 2020-06-12 ]

Will port to 1.4 / 1.2 after develop is reviewed

Comment by Patrick LeBlanc (Inactive) [ 2020-06-15 ]

gave feedback

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