impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailesh Mukil (Code Review)" <>
Subject [Impala-ASF-CR] PREVIEW: IMPALA-2550 Introduce query-wide execution context.
Date Fri, 29 Jul 2016 20:08:58 GMT
Sailesh Mukil has uploaded a new patch set (#2).

Change subject: PREVIEW: IMPALA-2550 Introduce query-wide execution context.

PREVIEW: IMPALA-2550 Introduce query-wide execution context.

This patch is a header preview of a query wide execution state for
a backend.

Changes in design are as follows:

FragmentMgr -> QueryExecMgr
  The QueryExecMgr now recieves incoming fragments, creates a new
  QueryExecState if it is the first fragment to arrive for that
  query and passes this fragment along to the QueryExecState.
  This class is responsible for cleaning up the QueryExecState.

QueryExecState (new):
  This is the query wide state for the backend. It is initialized by
  the first fragment to arrive to the QueryExecMgr. This class is now
  responsible for creating FragmentExecStates and executing them.
  Its life is protected by a ref counting mechanism which and is
  scheduled for destruction once the ref count reaches zero.
  Once scheduled for destruction, a thread in the QueryExecMgr will
  destroy the QueryExecState.
  Every user of the QueryExecState must access it within the scope of
  ScopedQueryExecStateRef which guarantees ref count incrementing and
  decrementing at entry/exit of the scope.

QueryExecState (old) -> RequestExecState:
  This is just a class name change.

P.S: This only shows what the changes would look like and as of yet
still does not compile.

Change-Id: I892091d6401acb2ea91ccb1623af54c6f9635e6c
M be/src/runtime/CMakeLists.txt
M be/src/runtime/
M be/src/runtime/coordinator.h
R be/src/runtime/
R be/src/runtime/fragment-exec-state.h
M be/src/runtime/
M be/src/runtime/plan-fragment-executor.h
A be/src/runtime/
A be/src/runtime/query-exec-state.h
M be/src/runtime/
M be/src/runtime/runtime-state.h
M be/src/service/CMakeLists.txt
M be/src/service/
M be/src/service/fragment-mgr.h
R be/src/service/
R be/src/service/request-exec-state.h
16 files changed, 497 insertions(+), 180 deletions(-)

  git pull ssh:// refs/changes/17/3817/2
To view, visit
To unsubscribe, visit

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I892091d6401acb2ea91ccb1623af54c6f9635e6c
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Sailesh Mukil <>

View raw message