Bug Report: possible panic
on closed channel in Online DDL's rename phase
#13728
Labels
panic
on closed channel in Online DDL's rename phase
#13728
Overview of the Issue
In
endtoend
'sonlineddl_vrepl_stress
tests, we caught apanic
caused bysend on closed channel
:Caused by this line:
vitess/go/vt/vttablet/onlineddl/executor.go
Line 976 in 4d9d94c
Problem is, this writer runs in a goroutine, and the channel is closed by this deferred function:
https://github.com/vitessio/vitess/blob/4d9d94c10e3db475523e2f45ea3e852051dcd619/go/vt/vttablet/onlineddl/executor.go#L865C2-L866
Which means any time the goroutine executes after the main function
cutOverVReplMigration()
completes, there will be (race condition permitting) a panic.Reproduction Steps
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: