impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Vissapragada (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5564: Release lock during planning. (wip)
Date Wed, 01 Nov 2017 18:41:16 GMT
Bharath Vissapragada has posted comments on this change. (

Change subject: IMPALA-5564: Release lock during planning. (wip)

Patch Set 1:

Commit Message:
PS1, Line 17: whereas the web UI would previously block on the lock.
> Looking over
Yep, we take the lock if the query is not in a CREATED state.

Status ImpalaServer::GetRuntimeProfileStr(const TUniqueId& query_id,
    const string& user, bool base64_encoded, stringstream* output) {
  DCHECK(output != nullptr);
  // Search for the query id in the active query map
    shared_ptr<ClientRequestState> request_state = GetClientRequestState(query_id);
    if (request_state.get() != nullptr) {
      // For queries in CREATED state, the profile information isn't populated yet.
      if (request_state->query_state() == beeswax::QueryState::CREATED) {
        return Status::Expected("Query plan is not ready.");
      lock_guard<mutex> l(*request_state->lock());

I agree this is a very important change from a usability/supportability perspective, to have
a partial profile visible to the user.
PS1, Line 26: know the query id
            : that's necessary to call GetResultSetMetadata()
> Yes, IMPALA-2568 is one of the eventual goals. This is actually listed as t
I was thinking more along the "profile copy" path Dan suggested, so that we can avoid removing
the lock during planning. I thought the latter involved more work since it could affect cancellations.
With the current patch, cancellations don't block anymore. when the query is planning, so
I think we should make sure to get that part right. I'm fine with this approach, if the cancellation
works without any issues.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e3fc4c28d7a5ad8546d48bcd22c03fbce502e5b
Gerrit-Change-Number: 8434
Gerrit-PatchSet: 1
Gerrit-Owner: Philip Zeyliger <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Philip Zeyliger <>
Gerrit-Comment-Date: Wed, 01 Nov 2017 18:41:16 +0000
Gerrit-HasComments: Yes

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