Skip to content
  • Hartley McGuire's avatar
    48ee7db3
    Add `allow_retry` to `sql.active_record` · 48ee7db3
    Hartley McGuire authored
    This enables identifying queries which are and are not automatically
    retryable on connection errors.
    
    A few end-to-end tests were left using `remote_disconnect` to ensure
    that reconnection is covered, but tests that are just trying to assert
    that certain queries will cause a reconnect can now make assertions
    using `allow_retry` instead. (In the case of Mysql2/Trilogy, this speeds
    up tests by 1 second per `remote_disconnect` call removed)
    48ee7db3
    Add `allow_retry` to `sql.active_record`
    Hartley McGuire authored
    This enables identifying queries which are and are not automatically
    retryable on connection errors.
    
    A few end-to-end tests were left using `remote_disconnect` to ensure
    that reconnection is covered, but tests that are just trying to assert
    that certain queries will cause a reconnect can now make assertions
    using `allow_retry` instead. (In the case of Mysql2/Trilogy, this speeds
    up tests by 1 second per `remote_disconnect` call removed)
Loading