Kevin Anderson
11/20/2024, 1:40 PMSrikanth Chekuri
11/20/2024, 1:54 PMWhy do you attempt to create the databases on each migration run?The command that get executed is
CREATE ... IF NOT EXISTS ...
, so if db already exists it doesn't do anything.
What is the best practice for running the migration task? Should it be performed in a downtime?The objective of the new schema migrator is zero downtime migrations. Either migration happens and the upgrade is successful without any downtime or no upgrade (with upgrade failure reasons).
but the create dbs part of the sync task gets a timeout while executing.This indicates that something is blocking the DDL execution. See if you have any mutations pending.
Kevin Anderson
11/20/2024, 2:48 PMSrikanth Chekuri
11/20/2024, 2:49 PMCREATE ... IF NOT EXISTS ...
to complete?