Skip to content

Commit

Permalink
HIVE-2929 race condition in DAG execute tasks for hive (Namit Jain vi…
Browse files Browse the repository at this point in the history
…a Siying Dong)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1310619 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Siying Dong committed Apr 6, 2012
1 parent fedb2ab commit 012cf42
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions ql/src/java/org/apache/hadoop/hive/ql/Driver.java
Expand Up @@ -1104,13 +1104,11 @@ public int execute() throws CommandNeedRetryException {
SessionState.get().setLocalMapRedErrors(new HashMap<String, List<String>>());

// Add root Tasks to runnable

for (Task<? extends Serializable> tsk : plan.getRootTasks()) {
driverCxt.addToRunnable(tsk);
}

// Loop while you either have tasks running, or tasks queued up

while (running.size() != 0 || runnable.peek() != null) {
// Launch upto maxthreads tasks
while (runnable.peek() != null && running.size() < maxthreads) {
Expand Down
Expand Up @@ -403,7 +403,6 @@ private MapRedStats progress(ExecDriverTaskHandle th) throws IOException {
MapRedStats mapRedStats = new MapRedStats(numMap, numReduce, cpuMsec, success, rj.getID().toString());
mapRedStats.setCounters(ctrs);

this.task.setDone();
// update based on the final value of the counters
updateCounters(ctrs, rj);

Expand Down

0 comments on commit 012cf42

Please sign in to comment.