Bug Report: cannot update _vt.schema_migrations table schema if zero values present in requested_timestamp
#12261
Labels
Component: General
Changes throughout the code base
Component: Online DDL
Online DDL (vitess/native/gh-ost/pt-osc)
Component: VReplication
Type: Bug
Overview of the Issue
Historically, there have been zero values in
_vt.schema_migrations.requested_timestamp
column; this was due t oa bug, fixed in 3012060#diff-d7427b60825b46773b837642e539fd8f00382fc230b717043f3aa76d3ee7ae14R103Unfortunately, those values violate the default
sql_mode
, which includesno_zero_date
andno_zero_in_date
.If we make changes to
_vt.schema_migrations
table, via theschemadiff
mechanism, and if zero values are found inrequested_timestamp
column, then those schema changes will fail, and the tablet will not be able to initialize properly.Reproduction Steps
deploy recent version, with an old migration that has
0000-00-00 00:00:00
value forrequested_timestamp
.Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: