Wenzhe Zhou has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19826
Change subject: WIP IMPALA-12060: Only allow a single catalog instance in a cluster ...................................................................... WIP IMPALA-12060: Only allow a single catalog instance in a cluster Impala doesn't support multiple catalogd instances to be part of a cluster. When using external Active Passive HA mechanisms like leader election, it may be possible for multiple catalog instances to be added in one cluster, in some cases. This patch fixs the issue by using statestore to ensure that there could only be a single instance of catalogd to be registered in a cluster. When a statestore subscriber in recovery mode, it will resolve its heartbeat address before re-registering to statestore. This prevents catalogd in passive mode from attempting to join the cluster. Testing: - Passed the core tests. - TODO unit-test Change-Id: I3f96122dc4d080b7cc5b4a7f3c2f27d336c2b288 --- M be/src/statestore/statestore-subscriber.cc M be/src/statestore/statestore-subscriber.h M be/src/statestore/statestore.cc M be/src/statestore/statestore.h 4 files changed, 80 insertions(+), 18 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/26/19826/1 -- To view, visit http://gerrit.cloudera.org:8080/19826 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I3f96122dc4d080b7cc5b4a7f3c2f27d336c2b288 Gerrit-Change-Number: 19826 Gerrit-PatchSet: 1 Gerrit-Owner: Wenzhe Zhou <[email protected]> Gerrit-Reviewer: Abhishek Rawat <[email protected]>
