This method must be invoked on the node that's currently the Master after all other outstanding handles have been closed.
The Master waits for all active Replicas to catch up so that they have a current set of logs, and then shuts them down. The Master will wait for a maximum of replicaShutdownTimeout
for a Replica to catch up. If the Replica has not caught up in this time period it will force the Replica to shut down before it is completely caught up. A negative or zero replicaShutdownTimeout
value will result in an immediate shutdown without waiting for lagging Replicas to catch up. Nodes that are currently inactive cannot be contacted by the Master, as a consequence, their state is not impacted by the shutdown.
The shutdown operation will close this handle on the Master node. The environments on Replica nodes will be invalidated, and attempts to use those handles will result in a {@link GroupShutdownException} beingthrown. The application is responsible for closing the remaining handles on the Replica.
@param replicaShutdownTimeout the maximum amount of time the Masterwaits for a Replica to shutdown.
@param unit the time unit associated with thereplicaShutdownTimeout
@throws IllegalStateException if the method is invoked on a node that'snot currently the Master, or there are other open handles to this Environment.
|
|
|
|