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

Change subject: IMPALA-12758: Fix catalogd not setting prev_id for reloaded 
partitions
......................................................................

IMPALA-12758: Fix catalogd not setting prev_id for reloaded partitions

Cache modification via partitioned table events should retain the
prev_id of the partitions while reloading the partitions. Currently,
prev_id is set to -1, so when the catalogDelta is sent from the
statestore to impala demons, because prev_id is not valid, coordinators
in local catalog mode will not know whether to invalidate the current
partition.

This patch addresses this issue by setting the prev_id of reloaded
partition.

Note: This is only an issue in local catalog mode for
REFRESH <partition> or updating partitions based on HMS events.

Testing:
- Added an end-to-end test to verify the same

Change-Id: Ia7d53f601b63d83e99cbd2d1f58076a0dc78c610
Reviewed-on: http://gerrit.cloudera.org:8080/21662
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M fe/src/main/java/org/apache/impala/catalog/HdfsTable.java
M tests/custom_cluster/test_events_custom_configs.py
M tests/custom_cluster/test_local_catalog.py
3 files changed, 40 insertions(+), 0 deletions(-)

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

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia7d53f601b63d83e99cbd2d1f58076a0dc78c610
Gerrit-Change-Number: 21662
Gerrit-PatchSet: 9
Gerrit-Owner: Sai Hemanth Gantasala <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Sai Hemanth Gantasala <[email protected]>

Reply via email to