소스 검색

AMBARI-16733. Ambari agent cancel logic does not use correct name to access task id (chen jian via smohanty)

Sumit Mohanty 9 년 전
부모
커밋
e51ec7a525
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      ambari-agent/src/main/python/ambari_agent/ActionQueue.py

+ 3 - 3
ambari-agent/src/main/python/ambari_agent/ActionQueue.py

@@ -135,13 +135,13 @@ class ActionQueue(threading.Thread):
 
       while not queue.empty():
         queued_command = queue.get(False)
-        if queued_command['task_id'] != task_id:
+        if queued_command['taskId'] != task_id:
           self.commandQueue.put(queued_command)
         else:
           logger.info("Canceling " + queued_command['commandType'] + \
                       " for service " + queued_command['serviceName'] + \
-                      " of cluster " +  queued_command['clusterName'] + \
-                      " to the queue.")
+                      " and role " +  queued_command['role'] + \
+                      " with taskId " + queued_command['taskId'])
 
       # Kill if in progress
       self.customServiceOrchestrator.cancel_command(task_id, reason)