Module | Moped::Failover::Reconfigure |
In: |
lib/moped/failover/reconfigure.rb
|
Reconfigure is for exceptions that indicate that a replica set was potentially reconfigured in the middle of an operation.
@since 2.0.0
Executes the failover strategy. In the case of reconfigure, we check if the failure was due to a replica set reconfiguration mid operation and raise a new error if appropriate.
@example Execute the reconfigure strategy.
Moped::Failover::Reconfigure.execute(exception, node)
@param [ Exception ] exception The raised exception. @param [ Node ] node The node the exception got raised on.
@raise [ Exception, Errors::ReplicaSetReconfigure ] The exception that
was previously thrown or a reconfiguration error.
@since 2.0.0