impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-ASF-CR] [PREVIEW] IMPALA-5058: Improve concurrency of DDL/DML operations
Date Thu, 16 Nov 2017 06:42:10 GMT
Alex Behm has posted comments on this change. ( )

Change subject: [PREVIEW] IMPALA-5058: Improve concurrency of DDL/DML operations

Patch Set 1:

(1 comment)
File fe/src/main/java/org/apache/impala/catalog/
PS1, Line 596:       addTableToCatalogDeltaHelper(tbl, fromVersion, toVersion, resp);
> Maybe I'm misunderstanding something but I still see the lock contention on
I think your assessment is correct.

We are not trying to make getCatalogDelta() completely non-blocking. As you've correctly pointed
out it can still block on a table lock.

The problem we are trying to solve is that non-conflicting operations should not conflict.
Before this change the global lock was held for the entire duration of getCatalogDelta().
If a long-running operation is running against tbl A, and the thread executing getCatalogDelta()
needs to wait to get the table lock on A, then no concurrent DDL whatsoever is possible due
to the global lock. That's the main problem: a long running operation on A can prevent concurrent
DDL against anything else.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3032437f83d39bcc8cff14d897c7c106a4ab62d3
Gerrit-Change-Number: 8545
Gerrit-PatchSet: 1
Gerrit-Owner: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Comment-Date: Thu, 16 Nov 2017 06:42:10 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message