activate

suspend fun activate(by: String, reason: String? = null): Activation

Activates a node started on standby, at a migration's cut-over: joins every context's lease group and every topic's, starting the subscriptions there (one that starts at the end of its stream starts where the stream ends now), the retries of the parked entries, the jobs and the snapshot maintenance. Its gateway admits commands from when it starts to join, as a start's does (a command of a partition the node does not own yet goes where any node's goes), so the node's own handlers are not refused as their partitions start; the node is standby until it has joined, and an activation that fails leaves it refusing commands, FrameworkCodes.NODE_CLOSING once the failed activation has stopped it. It is the operator's act, recorded for the audit: by names who activated it and reason why, both logged with the time. A node not on standby is left as it is: the answer says when it was activated, if it ever was. An activation that fails stops the node and throws.