Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1742

Missing method causes Thermos Observer /j/task_ids endpoint to always fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.13.0, 0.12.0, 0.11.0
    • None
    • Observer
    • None

    Description

      The code in https://github.com/apache/aurora/blob/master/src/main/python/apache/thermos/observer/http/json.py implementing the /j/task_ids JSON endpoint of the Thermos Observer attempts calls a method "task_ids" on the TaskObserver class in https://github.com/apache/aurora/blob/master/src/main/python/apache/thermos/observer/task_observer.py.

      This method does not exist and so the endpoint will always fail with an exception like this:

      AttributeError: 'TaskObserver' object has no attribute 'task_ids'
      Traceback (most recent call last):
        File "/home/produser/.pex/install/bottle-0.11.6-py2.py3-none-any.whl.e1e7f36ef104f01896f13c85c9899f9d3d0a8813/bottle-0.11.6-py2.py3-none-any.whl/bottle.py", line 764, in _handle
          return route.call(**args)
        File "/home/produser/.pex/install/bottle-0.11.6-py2.py3-none-any.whl.e1e7f36ef104f01896f13c85c9899f9d3d0a8813/bottle-0.11.6-py2.py3-none-any.whl/bottle.py", line 1575, in wrapper
          rv = callback(*a, **ka)
        File "apache/thermos/observer/http/json.py", line 30, in handle_task_ids
          return self._observer.task_ids(
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdyas Tom Dyas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: