Explorar o código

HUE-3840 [jb] Add debug info in possible 500 when pulling job conf from YARN

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
426a8b8
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      apps/jobbrowser/src/jobbrowser/yarn_models.py

+ 5 - 1
apps/jobbrowser/src/jobbrowser/yarn_models.py

@@ -245,7 +245,11 @@ class Job(object):
   @property
   def full_job_conf(self):
     if not hasattr(self, '_full_job_conf'):
-      self._full_job_conf = self.api.conf(self.id)['conf']
+      try:
+        conf = self.api.conf(self.id)
+        self._full_job_conf = conf['conf']
+      except TypeError, e:
+        LOG.exception('YARN API call failed to return all the data: %s' % conf)
     return self._full_job_conf
 
   @property