You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Dan Hecht (Code Review)" <ge...@cloudera.org> on 2017/11/16 01:40:22 UTC
[Impala-ASF-CR] IMPALA-4456: Address scalability issues of qs map lock and client request state map lock
Dan Hecht has posted comments on this change. ( http://gerrit.cloudera.org:8080/8363 )
Change subject: IMPALA-4456: Address scalability issues of qs_map_lock_ and client_request_state_map_lock_
......................................................................
Patch Set 4:
(3 comments)
http://gerrit.cloudera.org:8080/#/c/8363/4/be/src/runtime/query-exec-mgr.cc
File be/src/runtime/query-exec-mgr.cc:
http://gerrit.cloudera.org:8080/#/c/8363/4/be/src/runtime/query-exec-mgr.cc@73
PS4, Line 73: exec_mgr_->qs_map_lock_[qs_map_bucket_].DCheckLocked();
: return &exec_mgr_->qs_map_[qs_map_bucket_];
just call get() to make it obvious this is the same
http://gerrit.cloudera.org:8080/#/c/8363/4/be/src/runtime/query-exec-mgr.cc@78
PS4, Line 78: QueryExecMgr* exec_mgr_;
: uint8_t qs_map_bucket_;
would probably make the above code simpler to instead just store direct pointers to the lock and the map.
http://gerrit.cloudera.org:8080/#/c/8363/4/be/src/service/impala-server.h
File be/src/service/impala-server.h:
http://gerrit.cloudera.org:8080/#/c/8363/4/be/src/service/impala-server.h@830
PS4, Line 830: uint8_t client_map_bucket_;
same comment as in the other scoped class.
(consider maybe even creating a template ScopedShardedMapRef<typename MapType> so you can share the pattern explicitly and just make these scoped classes be typedefs).
--
To view, visit http://gerrit.cloudera.org:8080/8363
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I61089090e1095da45a8a64ed3ccc78bd310807f1
Gerrit-Change-Number: 8363
Gerrit-PatchSet: 4
Gerrit-Owner: Sailesh Mukil <sa...@cloudera.com>
Gerrit-Reviewer: Dan Hecht <dh...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Reviewer: Sailesh Mukil <sa...@cloudera.com>
Gerrit-Comment-Date: Thu, 16 Nov 2017 01:40:22 +0000
Gerrit-HasComments: Yes