Vuk Ercegovac has uploaded this change for review. ( http://gerrit.cloudera.org:8080/8202
Change subject: IMPALA-4704: Disallow client connections to imapalad until catalog is received. ...................................................................... IMPALA-4704: Disallow client connections to imapalad until catalog is received. Currently, impalad starts beeswax and hs2 servers even if the catalog has not yet been received. As a result, client connections see an error message stating that the impalad is not yet ready. This patch changes the impalad startup sequence to wait until the catalog is received before starting the beeswax and hs2 servers. The wait time is bounded by a constant number of attempts (5). Each attempt waits for the maximum allowable wait time for catalog notifications (2s). If the catalog is not ready within this wait time bound, the impalad exits. Testing: - python e2e tests that start a cluster without a catalog and check that impalad's die as expected and that client connections are rejected as expected. Change-Id: I52b881cba18a7e4533e21a78751c2e35c3d4c8a6 --- M be/src/service/frontend.cc M be/src/service/frontend.h M be/src/service/impala-server.cc M fe/src/main/java/org/apache/impala/service/Frontend.java M fe/src/main/java/org/apache/impala/service/JniFrontend.java M tests/common/impala_cluster.py A tests/custom_cluster/test_catalog_wait.py 7 files changed, 134 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/02/8202/1 -- To view, visit http://gerrit.cloudera.org:8080/8202 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I52b881cba18a7e4533e21a78751c2e35c3d4c8a6 Gerrit-Change-Number: 8202 Gerrit-PatchSet: 1 Gerrit-Owner: Vuk Ercegovac <vercego...@cloudera.com>