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

MesosSchedulerImpl should check if reason is present when posting status updates

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • Scheduler
    • None
    • Twitter Aurora Q2'15 Sprint 6
    • 2

    Description

      We export stats based on task statuses, however since protobuf enums default to a value when unset, the reason stats we generate may not be correct. c.f https://github.com/apache/aurora/blob/998993dd802cf5e94a995aefd7a6c4ec90a1d3af/src/main/java/org/apache/aurora/scheduler/mesos/MesosSchedulerImpl.java#L228. If reason is unset, it will default to the first enum value (REASON_COMMAND_EXECUTOR_FAILED).

      We should call status.hasReason() first and if it's not set, do not use the value of status.getReason().

      Attachments

        Activity

          People

            wfarner Bill Farner
            joshua.cohen Joshua Cohen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: