jstests/hooks/run_reconfig_background.js
/**
 * Returns true if the error code indicates the node is currently shutting down.
 */
Returns true if the error code indicates the node is currently shutting down.
Returns true if the error code indicates the node is currently shutting down .
function isShutdownError(error) {
    return error.code === ErrorCodes.ShutdownInProgress ||
        error.code === ErrorCodes.InterruptedAtShutdown ||
        error.message.includes("The server is in quiesce mode and will shut down");
}
function isShutdownError ( error ) { return error . code === ErrorCodes . ShutdownInProgress || error . code === ErrorCodes . InterruptedAtShutdown || error . message . includes ( "The server is in quiesce mode and will shut down" ) ; }
Returns true if the error code indicates the node is currently shutting down.
Returns true if the error code indicates the node is currently shutting down .
// TODO (SERVER-54026): Remove check for error message once the shell correctly // propagates the error code.