impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailesh Mukil (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4456: Change query exec state lock to a reader-writer lock
Date Wed, 09 Nov 2016 23:37:22 GMT
Sailesh Mukil has posted comments on this change.

Change subject: IMPALA-4456: Change query_exec_state_lock_ to a reader-writer lock

Patch Set 3:

Commit Message:

PS2, Line 11: wi
> with

PS2, Line 13: The main offender, ReportExecStatus() contends heavily for this lock
            : on the coordinator for each update that a fragment instance sends as
            : a RPC. This causes the creation of a larger number of new client
            : connections on that node as a lot of connec
> Quantify what "big win" means.
File be/src/service/impala-server.h:

Line 673:   /// being modified, in which case it must be acquired as a write lock.
> Update comment with expected read and write usage, and also update class co
File be/src/util/rw_lock.h:

PS2, Line 25: class ReadWriteLock {
            :  public:
            :   ReadWriteLock() {}
            :   // Reader lock functions.
            :   void ReadAcquire() { l.ReadAcquire(); }
            :   void ReadRelease() { l.ReadRelease(); }
            :   // Writer lock functions.
            :   void WriteAcquire() { l.WriteAcquire(); }
            :   void WriteRelease() { l.WriteRelease(); }
            :  private:
            :   base::subtle::ReadWriteLock l;
            :   DISALLOW_COPY_AND_ASSIGN(ReadWriteLock);
            : };
> Why does this class need to exist?
I noticed that we don't have the habit of using objects from other namespaces (save for boost
or std).

If you think it doesn't matter using the base::subtle namespace in the main codebase, then
I can change it to using it directly from the gutils.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I790a95e7179f07aa7ba188d5422c5e054353ba0b
Gerrit-PatchSet: 3
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Sailesh Mukil <>
Gerrit-Reviewer: Henry Robinson <>
Gerrit-Reviewer: Sailesh Mukil <>
Gerrit-HasComments: Yes

View raw message