You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Quanlong Huang (Code Review)" <ge...@cloudera.org> on 2023/04/23 05:53:51 UTC

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19786


Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................

IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

INVALIDATE METADATA can be executed on tables under unloaded db. It will
bring up the metadata of the db by the way. However, this feature is
broken after IMPALA-11808 in which we try to get the table from catalog
cache assuming it's loaded. This causes the above use case failed by
DatabaseNotFoundException.

This patch fixes the regression by not getting the table from catalog
cache for INVALIDATE METADATA commands. We only do so for REFRESH
commands. After the INVALIDATE METADATA command succeeds, if we need to
fire reload events, we get the table from catalog cache.

Tests:
 - Add e2e tests for event-processor is disabled and enabled.

Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M tests/custom_cluster/test_metadata_no_events_processing.py
M tests/metadata/test_hms_integration.py
3 files changed, 35 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/86/19786/1
-- 
To view, visit http://gerrit.cloudera.org:8080/19786
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 5:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/12873/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 5
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 22:12:32 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Hello Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19786

to look at the new patch set (#2).

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................

IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

INVALIDATE METADATA can be executed on tables under unloaded db. It will
bring up the metadata of the db by the way. However, this feature is
broken after IMPALA-11808 in which we try to get the table from catalog
cache assuming it's loaded. This causes the above use case failed by
DatabaseNotFoundException.

This patch fixes the regression by not getting the table from catalog
cache for INVALIDATE METADATA commands. We only do so for REFRESH
commands. After the INVALIDATE METADATA command succeeds, if we need to
fire reload events, we get the table from catalog cache.

Tests:
 - Add e2e tests for event-processor is disabled and enabled.

Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M tests/custom_cluster/test_metadata_no_events_processing.py
M tests/metadata/test_hms_integration.py
3 files changed, 41 insertions(+), 5 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 5:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/19786/4/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/19786/4/shell/impala_shell.py@71
PS4, Line 71: F
> flake8: F401 'thrift.protocol.fastbinary' imported but unused
Oops, unintentionally included this change.


http://gerrit.cloudera.org:8080/#/c/19786/4/shell/impala_shell.py@73
PS4, Line 73: DEFAULT_STRICT_HS2_PORT = 11050
> flake8: E722 do not use bare 'except'
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 5
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 21:52:02 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Hello Sai Hemanth Gantasala, Michael Smith, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19786

to look at the new patch set (#4).

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................

IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

INVALIDATE METADATA can be executed on tables under unloaded db. It will
bring up the metadata of the db by the way. However, this feature is
broken after IMPALA-11808 in which we try to get the table from catalog
cache assuming it's loaded. This causes the above use case failed by
DatabaseNotFoundException.

This patch fixes the regression by not getting the table from catalog
cache for INVALIDATE METADATA commands. We only do so for REFRESH
commands. After the INVALIDATE METADATA command succeeds, if we need to
fire reload events, we get the table from catalog cache.

Tests:
 - Add e2e tests for event-processor is disabled and enabled.

Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M shell/impala_shell.py
M tests/custom_cluster/test_metadata_no_events_processing.py
M tests/metadata/test_hms_integration.py
4 files changed, 43 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/86/19786/4
-- 
To view, visit http://gerrit.cloudera.org:8080/19786
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 4:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/12872/ : Initial code review checks failed. See linked job for details on the failure.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 14:24:57 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Hello Sai Hemanth Gantasala, Michael Smith, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19786

to look at the new patch set (#5).

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................

IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

INVALIDATE METADATA can be executed on tables under unloaded db. It will
bring up the metadata of the db by the way. However, this feature is
broken after IMPALA-11808 in which we try to get the table from catalog
cache assuming it's loaded. This causes the above use case failed by
DatabaseNotFoundException.

This patch fixes the regression by not getting the table from catalog
cache for INVALIDATE METADATA commands. We only do so for REFRESH
commands. After the INVALIDATE METADATA command succeeds, if we need to
fire reload events, we get the table from catalog cache.

Tests:
 - Add e2e tests for event-processor is disabled and enabled.

Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M tests/custom_cluster/test_metadata_no_events_processing.py
M tests/metadata/test_hms_integration.py
3 files changed, 37 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/86/19786/5
-- 
To view, visit http://gerrit.cloudera.org:8080/19786
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 5
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 4:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/19786/4/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/19786/4/shell/impala_shell.py@71
PS4, Line 71: i
flake8: F401 'thrift.protocol.fastbinary' imported but unused


http://gerrit.cloudera.org:8080/#/c/19786/4/shell/impala_shell.py@73
PS4, Line 73: except:
flake8: E722 do not use bare 'except'



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 14:11:45 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 3:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9252/ DRY_RUN=false


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Apr 2023 01:37:16 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Sai Hemanth Gantasala (Code Review)" <ge...@cloudera.org>.
Sai Hemanth Gantasala has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 2: Code-Review+1

The changes look good to me.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Mon, 24 Apr 2023 18:14:48 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 3: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Apr 2023 01:37:15 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 5: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 5
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 04:15:00 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19786/3/tests/metadata/test_hms_integration.py
File tests/metadata/test_hms_integration.py:

http://gerrit.cloudera.org:8080/#/c/19786/3/tests/metadata/test_hms_integration.py@156
PS3, Line 156:       res = self.client.execute("describe %s" % tbl)
The DESCRIBE statement fails intermitently when event-processor is enabled. It's due to another bug and it's independent to this fix. Filed IMPALA-12103 to track it.

Removed the DESCRIBE statement only in this test since it runs with event-processor enabled.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 14:11:02 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/12839/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sun, 23 Apr 2023 06:14:31 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 3: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/9252/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Tue, 25 Apr 2023 06:54:39 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 5: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 5
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 21:55:26 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................

IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

INVALIDATE METADATA can be executed on tables under unloaded db. It will
bring up the metadata of the db by the way. However, this feature is
broken after IMPALA-11808 in which we try to get the table from catalog
cache assuming it's loaded. This causes the above use case failed by
DatabaseNotFoundException.

This patch fixes the regression by not getting the table from catalog
cache for INVALIDATE METADATA commands. We only do so for REFRESH
commands. After the INVALIDATE METADATA command succeeds, if we need to
fire reload events, we get the table from catalog cache.

Tests:
 - Add e2e tests for event-processor is disabled and enabled.

Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Reviewed-on: http://gerrit.cloudera.org:8080/19786
Reviewed-by: Michael Smith <mi...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M tests/custom_cluster/test_metadata_no_events_processing.py
M tests/metadata/test_hms_integration.py
3 files changed, 37 insertions(+), 5 deletions(-)

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

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 6
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 5:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9256/ DRY_RUN=false


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 5
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Wed, 26 Apr 2023 22:59:13 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 2: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Mon, 24 Apr 2023 22:51:14 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19786 )

Change subject: IMPALA-12082: Fix db not found error of INVALIDATE METADATA under unloaded db
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/12840/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifd0a9e87f06c38f569c32bd10cc2668403681fd4
Gerrit-Change-Number: 19786
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sun, 23 Apr 2023 06:50:25 +0000
Gerrit-HasComments: No