Skip to content

Commit

Permalink
TEZ-3245. Data race between addKnowInput and clearAndGetOnepartition …
Browse files Browse the repository at this point in the history
…of InputHost. (Zhiyuan Yang via hitesh)
  • Loading branch information
hiteshs committed May 9, 2016
1 parent c3b8b85 commit eceb7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release 0.9.0: Unreleased
INCOMPATIBLE CHANGES

ALL CHANGES:
TEZ-3245. Data race between addKnowInput and clearAndGetOnepartition of InputHost.
TEZ-3193. Deadlock in AM during task commit request.
TEZ-3203. DAG hangs when one of the upstream vertices has zero tasks
TEZ-3207. Add support for fetching multiple partitions from the same source task to UnorderedKVInput.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public int getNumPendingPartitions() {
return partitionToInputs.size();
}

public void addKnownInput(Integer partition,
public synchronized void addKnownInput(Integer partition,
InputAttemptIdentifier srcAttempt) {
BlockingQueue<InputAttemptIdentifier> inputs =
partitionToInputs.get(partition);
Expand All @@ -68,7 +68,7 @@ public void addKnownInput(Integer partition,
inputs.add(srcAttempt);
}

public PartitionToInputs clearAndGetOnePartition() {
public synchronized PartitionToInputs clearAndGetOnePartition() {
for (Map.Entry<Integer, BlockingQueue<InputAttemptIdentifier>> entry :
partitionToInputs.entrySet()) {
List<InputAttemptIdentifier> inputs =
Expand Down

0 comments on commit eceb7ac

Please sign in to comment.