[MCOL-4181] Replication of InnoDB into ColumnStore ends in SEGV in plugin Created: 2020-07-15  Updated: 2020-09-21  Resolved: 2020-08-28

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.4.4, 1.5.3
Fix Version/s: 1.4.5, 5.4.1

Type: Bug Priority: Major
Reporter: Gregory Dorman (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

This is an MCOL equivalent of DBAAS-4585. The evidence so far is that when columnstore is deployed as a slave to innodb, an attempt to do INSERT INTO InnoDBTable1 SELECT FROM InnoDBTable2 ends up in SEGV in the plugin.

toddstoffel has a reproduction in dockers. t is at present unknown if it also manifests itself in plain on prem setting (let's start with verifying that).



 Comments   
Comment by Ben Thompson (Inactive) [ 2020-07-16 ]

This is being cause by the line:
ci->stats.fUser = thd->main_security_ctx.user;
which it is possible to reach this with thd->main_security_ctx.user as NULL
Other spots in the code were fixed with the commit from MCOL-593. This one appears to have been missed

Comment by Gagan Goel (Inactive) [ 2020-07-20 ]

ben.thompson Can you open PR for 1.5 as well, and check if this also affects 1.2?

Comment by Ben Thompson (Inactive) [ 2020-07-20 ]

Same fix for develop branch

Comment by Gagan Goel (Inactive) [ 2020-08-03 ]

For QA: The crash case to test the fix is mentioned in DBAAS-4585.

Comment by Daniel Lee (Inactive) [ 2020-08-28 ]

Build verified: 1.5.4-1 (Drone #460 on Centos 8)

The issue reported in DBAAS-4585 is no longer happening. The fix is also in the 1.4 branch.

Thanks to Product Management for their assistance.

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