소스 검색

[oozie] Avoid a noisy exception in the logs

Romain Rigaux 10 년 전
부모
커밋
8d65a75
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      apps/oozie/src/oozie/views/dashboard.py

+ 2 - 1
apps/oozie/src/oozie/views/dashboard.py

@@ -389,7 +389,8 @@ def list_oozie_coordinator(request, job_id):
   # Cross reference the submission history (if any)
   coordinator = get_history().get_coordinator_from_config(oozie_coordinator.conf_dict)
   try:
-    coordinator = get_history().objects.get(oozie_job_id=job_id).job.get_full_node()
+    if not ENABLE_V2.get():
+      coordinator = get_history().objects.get(oozie_job_id=job_id).job.get_full_node()
   except:
     LOG.exception("Ignoring error getting oozie job coordinator for job_id=%s", job_id)