Merge pull request #5370 from kakaiu/add_trace_event_for_role_recruitment_by_CC

Add trace event for role recruitment by CC
This commit is contained in:
Zhe Wang 2021-08-23 23:34:12 -05:00 committed by GitHub
commit 72f4ad5451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -3592,6 +3592,8 @@ ACTOR Future<Void> clusterRecruitFromConfiguration(ClusterControllerData* self,
return Void();
} else if (e.code() == error_code_operation_failed || e.code() == error_code_no_more_servers) {
// recruitment not good enough, try again
TraceEvent("RecruitFromConfigurationRetry", self->id).error(e)
.detail("GoodRecruitmentTimeReady", self->goodRecruitmentTime.isReady());
} else {
TraceEvent(SevError, "RecruitFromConfigurationError", self->id).error(e);
throw; // goodbye, cluster controller
@ -3617,6 +3619,8 @@ ACTOR Future<Void> clusterRecruitRemoteFromConfiguration(ClusterControllerData*
return Void();
} else if (e.code() == error_code_operation_failed || e.code() == error_code_no_more_servers) {
// recruitment not good enough, try again
TraceEvent("RecruitRemoteFromConfigurationRetry", self->id).error(e)
.detail("GoodRecruitmentTimeReady", self->goodRemoteRecruitmentTime.isReady());
} else {
TraceEvent(SevError, "RecruitRemoteFromConfigurationError", self->id).error(e);
throw; // goodbye, cluster controller