Yida Wu has uploaded a new patch set (#2). ( 
http://gerrit.cloudera.org:8080/24600 )

Change subject: IMPALA-15121: Fix query failure when catalogd is in standby 
mode during HA failover
......................................................................

IMPALA-15121: Fix query failure when catalogd is in standby mode during HA 
failover

During a catalogd HA failover, an impalad coordinator might try
to fetch metadata from a catalogd that was previously in active
mode but has just restarted and in standby mode now. In this
case, the metadata request is rejected with a standby mode
error, causing the query to fail.

This change recognizes the standby mode rejection error and
converts it into an InconsistentMetadataFetchException, allowing
the existing Frontend retry mechanism to retry the metadata
fetch. As a result, the query retries against the new active
catalogd at the end instead of failing.

Tests:
Added a new ee test test_standby_retry_during_failover.
Passed core tests.

Change-Id: Ia511e22a596733e6a2dd752894d6da43e91faca6
---
M fe/src/main/java/org/apache/impala/catalog/local/CatalogdMetaProvider.java
M tests/custom_cluster/test_catalogd_ha.py
2 files changed, 43 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/00/24600/2
--
To view, visit http://gerrit.cloudera.org:8080/24600
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia511e22a596733e6a2dd752894d6da43e91faca6
Gerrit-Change-Number: 24600
Gerrit-PatchSet: 2
Gerrit-Owner: Yida Wu <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>

Reply via email to