Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: change cutover timeout to 60 seconds (#8198)
Danny Xu1420d110d431
diff --git a/backend/utils/utils.go b/backend/utils/utils.goindex b7bf32f7ae..0d110ee9c8 100644--- a/backend/utils/utils.go+++ b/backend/utils/utils.go@@ -151,7 +151,7 @@ func NewMigrationContext(config GhostConfig) (*base.MigrationContext, error) {dmlBatchSize = 10maxLagMillisecondsThrottleThreshold = 1500defaultNumRetries = 60- cutoverLockTimeoutSeconds = 10+ cutoverLockTimeoutSeconds = 60exponentialBackoffMaxInterval = 64throttleHTTPIntervalMillis = 100throttleHTTPTimeoutMillis = 1000@@ -179,6 +179,9 @@ func NewMigrationContext(config GhostConfig) (*base.MigrationContext, error) {migrationContext.AssumeRBR = true}// set defaults+ if err := migrationContext.SetConnectionConfig(""); err != nil {+ return nil, err+ }migrationContext.AllowedRunningOnMaster = allowedRunningOnMastermigrationContext.ConcurrentCountTableRows = concurrentCountTableRowsmigrationContext.HooksStatusIntervalSec = hooksStatusIntervalSecdiff --git a/go.mod b/go.modindex 3a88076ad9..79457853b6 100644--- a/go.mod+++ b/go.mod@@ -275,7 +275,7 @@ require (// fix potential security issue(CVE-2020-26160) introduced by indirect dependency.replace github.com/dgrijalva/jwt-go => github.com/form3tech-oss/jwt-go v3.2.6-0.20210809144907-32ab6a8243d7+incompatible-replace github.com/github/gh-ost => github.com/bytebase/gh-ost v1.1.3-0.20220728080340-11d9c9027651+replace github.com/github/gh-ost => github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9replace github.com/pingcap/tidb => github.com/bytebase/tidb v0.0.0-20230914094316-ec1081216cfbdiff --git a/go.sum b/go.sumindex af6dbbba24..1d0ed7ef6f 100644--- a/go.sum+++ b/go.sum@@ -145,8 +145,8 @@ github.com/bsm/ginkgo/v2 v2.7.0 h1:ItPMPH90RbmZJt5GtkcNvIRuGEdwlBItdNVoyzaNQao=github.com/bsm/ginkgo/v2 v2.7.0/go.mod h1:AiKlXPm7ItEHNc/2+OkrNG4E0ITzojb9/xWzvQ9XZ9w=github.com/bsm/gomega v1.26.0 h1:LhQm+AFcgV2M0WyKroMASzAzCAJVpAxQXv4SaI9a69Y=github.com/bsm/gomega v1.26.0/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0=-github.com/bytebase/gh-ost v1.1.3-0.20220728080340-11d9c9027651 h1:NpoTuRY6Ckj37zTlEax/UTfvHCOdanI5/5dVCarOD18=-github.com/bytebase/gh-ost v1.1.3-0.20220728080340-11d9c9027651/go.mod h1:/HsnX0+34LXVz3MxtZoW15GiwEOXz/PrEhutjb3icfE=+github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9 h1:Sk8tTyttWhoKj6q5zXu6BcIM1c3B3qFWYSHJZuaf178=+github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9/go.mod h1:/HsnX0+34LXVz3MxtZoW15GiwEOXz/PrEhutjb3icfE=github.com/bytebase/mongo-parser v0.0.0-20230911083938-8f47f81da367 h1:ONQLAjBeiT+AvvGexuv2kTPtd2KpVJZJj0B0aJ1CUXw=github.com/bytebase/mongo-parser v0.0.0-20230911083938-8f47f81da367/go.mod h1:m6o2Nl28jGHWCxbraY4zd9WgLRK+kWbOEmvwg5Zti2U=github.com/bytebase/mysql-parser v0.0.0-20230612050356-4592d9ba30da h1:DlK8ipp+tzhEPNBmOLG0wBhM+cYX3leGTh+8lomML2U=