impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcell Szabo (Code Review)" <>
Subject [Impala-CR](cdh5-trunk) IMPALA-2518: DROP DATABASE CASCADE does not remove cache directives of tables
Date Fri, 04 Mar 2016 12:04:09 GMT
Marcell Szabo has posted comments on this change.

Change subject: IMPALA-2518: DROP DATABASE CASCADE does not remove cache directives of tables

Patch Set 3:

File fe/src/main/java/com/cloudera/impala/service/

Line 1162: it expects
> What happens if this expectation is violated, perhaps by someone pulling th
Very good comment. It would be nice to review the whole metadata solution and implement some
kind of journaling and 2/3 phase commits. The current system doesn't seem to have such guarantees
at any point.
Regarding this specific case: the user will see that the drop table query failed and will
need to run it again. The rerun will skip the already deleted cache directives with a warning.
File fe/src/main/java/com/cloudera/impala/util/

Line 127:    * If the table has partitions, uncachePartition() needs to be called.
> Are the callers already doing this correctly?
With this patch, yes, all calls behave as documented here.
File tests/query_test/

Line 135:   def test_caching_ddl_drop_database(self, vector):
> This could use a docstring.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I58270e1be49e71a08e12021e7dddab01969d1810
Gerrit-PatchSet: 3
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Marcell Szabo <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Jim Apple <>
Gerrit-Reviewer: Juan Yu <>
Gerrit-Reviewer: Marcell Szabo <>
Gerrit-HasComments: Yes

View raw message