From ee5fd713209c3090766248eb65a460f727add67a Mon Sep 17 00:00:00 2001 From: Jingyu Zhou Date: Wed, 31 Aug 2022 14:03:36 -0700 Subject: [PATCH] Add back RecoveryAvailable trace event for status --- fdbserver/ClusterRecovery.actor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fdbserver/ClusterRecovery.actor.cpp b/fdbserver/ClusterRecovery.actor.cpp index 44c84baf01..a8462f9e2a 100644 --- a/fdbserver/ClusterRecovery.actor.cpp +++ b/fdbserver/ClusterRecovery.actor.cpp @@ -1744,6 +1744,12 @@ ACTOR Future clusterRecoveryCore(Reference self) { .detail("RecoveryDuration", recoveryDuration) .trackLatest(self->clusterRecoveryStateEventHolder->trackingKey); + TraceEvent(getRecoveryEventName(ClusterRecoveryEventType::CLUSTER_RECOVERY_AVAILABLE_EVENT_NAME).c_str(), + self->dbgid) + .detail("NumOfOldGensOfLogs", self->cstate.myDBState.oldTLogData.size()) + .detail("AvailableAtVersion", self->recoveryTransactionVersion) + .trackLatest("MasterRecoveryAvailable"); + self->addActor.send(changeCoordinators(self)); Database cx = openDBOnServer(self->dbInfo, TaskPriority::DefaultEndpoint, LockAware::True); self->addActor.send(configurationMonitor(self, cx));