Class CockroachDBRetryingStrategy

java.lang.Object
org.flywaydb.database.cockroachdb.CockroachDBRetryingStrategy
All Implemented Interfaces:
org.flywaydb.core.internal.database.DatabaseExecutionStrategy

public class CockroachDBRetryingStrategy extends Object implements org.flywaydb.core.internal.database.DatabaseExecutionStrategy
CockroachDB recommend the use of retries should we see a SQL error code 40001, which represents a lock wait timeout. This class implements an appropriate retry pattern.
  • Constructor Details

    • CockroachDBRetryingStrategy

      public CockroachDBRetryingStrategy()
  • Method Details

    • execute

      public <T> T execute(org.flywaydb.core.internal.util.SqlCallable<T> callable) throws SQLException
      Specified by:
      execute in interface org.flywaydb.core.internal.database.DatabaseExecutionStrategy
      Throws:
      SQLException