impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitris Tsirogiannis (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5259: Add REFRESH FUNCTIONS <db> statement
Date Tue, 23 May 2017 04:31:12 GMT
Dimitris Tsirogiannis has posted comments on this change.

Change subject: IMPALA-5259: Add REFRESH FUNCTIONS <db> statement

Patch Set 8:

(1 comment)
File fe/src/main/java/org/apache/impala/catalog/

PS8, Line 613: refreshFunctions
I don't think this function correctly protects the db against concurrent modifications. Let
me give you an example. Client 1 is running a refreshFunctions while Client 2 is calling addFunction
on the same database. Let's assume that addFunction is executed sometime between L628 and
637 and adds a new function F1 to the database and HMS. The operation will succeed and the
new function will be returned to Client 2. Then the synchronized block (L637- 674) is executed
which will assume that F1 has been removed and will delete it from the database. If Client
1 then tries to run a statement that uses F1 an error will be thrown between the function
is no longer there.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I3625c88bb51cca833f3293c224d3f0feb00e6e0b
Gerrit-PatchSet: 8
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Taras Bobrovytsky <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Taras Bobrovytsky <>
Gerrit-HasComments: Yes

View raw message