YARN-1498 addendum to fix findbugs warning

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1567483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sanford Ryza 2014-02-12 01:16:55 +00:00
parent 673ba4c00e
commit 5d53da64db
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ public class SchedulerApplicationAttempt {
.transferStateFromPreviousAppSchedulingInfo(appAttempt.appSchedulingInfo); .transferStateFromPreviousAppSchedulingInfo(appAttempt.appSchedulingInfo);
} }
public void move(Queue newQueue) { public synchronized void move(Queue newQueue) {
QueueMetrics oldMetrics = queue.getMetrics(); QueueMetrics oldMetrics = queue.getMetrics();
QueueMetrics newMetrics = newQueue.getMetrics(); QueueMetrics newMetrics = newQueue.getMetrics();
String user = getUser(); String user = getUser();