Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/21086 )

Change subject: IMPALA-12849: Standby catalogd should reject requests from 
coordinators
......................................................................

IMPALA-12849: Standby catalogd should reject requests from coordinators

In a catalog HA enabled cluster, it's possible that the standby catalogd
could receive requests from coordinators in a short window after catalog
fail-over is triggered since the coordinators may receive the fail-over
notification from statestore with delayed time. In this scenarios,
the standby catalogd should reject all requests from coordinators so
that only one catalogd serving catalog service for the cluster.

This patch checks if the catalog server is active when handling request
from clients.

Testing:
 - Added end-to-end unit-test.
 - Passed core tests.

Change-Id: Iea38bdf4f207af657e71670a572efc7c0a0ba807
Reviewed-on: http://gerrit.cloudera.org:8080/21086
Reviewed-by: Riza Suminto <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M be/src/catalog/catalog-server.cc
M be/src/catalog/catalog-server.h
M be/src/runtime/exec-env.cc
M tests/custom_cluster/test_catalogd_ha.py
4 files changed, 58 insertions(+), 12 deletions(-)

Approvals:
  Riza Suminto: Looks good to me, approved
  Impala Public Jenkins: Verified

--
To view, visit http://gerrit.cloudera.org:8080/21086
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iea38bdf4f207af657e71670a572efc7c0a0ba807
Gerrit-Change-Number: 21086
Gerrit-PatchSet: 5
Gerrit-Owner: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Riza Suminto <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Zihao Ye <[email protected]>

Reply via email to