Hello Quanlong Huang, Wenzhe Zhou, Michael Smith, Impala Public Jenkins, I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/22844 to look at the new patch set (#8). Change subject: IMPALA-13850 (part 2): Fix bug found by test_restart_services.py ...................................................................... IMPALA-13850 (part 2): Fix bug found by test_restart_services.py This patch stabilize test_restart_catalogd_with_local_catalog in test_restart_services.py after the first part of IMPALA-13850 merged. IMPALA-13850 (part 1) make local catalog mode send statestore update twice: the first is to announce its availability and service id, while the second is the full topic update. There is a slight duration where CatalogD accept getCatalogObject() request before the very first CatalogServiceCatalog.reset() initiated and obtain write lock. When such request went through, the request might see an empty catalog which results in query failures of db/table not exists. This patch block CatalogServiceThriftIf.AcceptRequest() until CatalogServiceCatalog.reset() initiated. Catalog version 100 is used to signal that initial reset has begun. Later in part 3, when we implement in-place metadata cache reset, AcceptRequest() can unblock faster when reset() release the write lock in-between catalog cache initialization. Testing: - Loop and pass test_restart_catalogd_with_local_catalog 100 times. Change-Id: I97f6f692506de0bbf2e1445f83bed824dc8298fd --- M be/src/catalog/catalog-server.cc M fe/src/main/java/org/apache/impala/catalog/Catalog.java M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java 3 files changed, 26 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/44/22844/8 -- To view, visit http://gerrit.cloudera.org:8080/22844 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I97f6f692506de0bbf2e1445f83bed824dc8298fd Gerrit-Change-Number: 22844 Gerrit-PatchSet: 8 Gerrit-Owner: Riza Suminto <riza.sumi...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Michael Smith <michael.sm...@cloudera.com> Gerrit-Reviewer: Quanlong Huang <huangquanl...@gmail.com> Gerrit-Reviewer: Riza Suminto <riza.sumi...@cloudera.com> Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>