Executing prepared statement can abort node after FLUSH TABLES

Description

When FLUSH TABLES happen after a statement is prepared, execution often leads to node crashes due to broken consistency. We can see this in the error log:

Steps to reproduce:

 

 

Environment

None

AFFECTED CS IDs

CS0042232, CS0042654

Activity

Show:

Venkatesh Prasad January 3, 2024 at 8:40 PM

Venkatesh Prasad January 2, 2024 at 11:30 AM

It triggers inconsistency voting because the error is set after the replication of TOI.

 

Venkatesh Prasad December 22, 2023 at 7:10 AM

I was able to reproduce the bug with the given steps. I’ll post my analysis soon.

Done

Details

Assignee

Reporter

Needs Review

Yes

Needs QA

Yes

Sprint

Priority

Smart Checklist

Created November 29, 2023 at 3:27 PM
Updated August 7, 2024 at 8:34 AM
Resolved April 3, 2024 at 8:02 PM