Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-881

Possible NullPointerException if a Job Chain Node doesn't have an error state

    XMLWordPrintable

Details

    Description

      Current Situation

      With JOC-874 a possibly NullPointerException can be raised if a Job has an error at a Job Chain Node where an error_state is not configured, e.g.

      <job_chain>
        <!-- we assume that the job 'jobExit2' has an exit code 2 -->
        <job_chain_node job="jobExit2" state="start"/>
      </job_chain>
      

      It is recommend that each Job Chain Node has a next_state and an error_state, e.g.

      <job_chain>
        <job_chain_node job="jobExit2" next_state="success" error_state="error" state="start"/>
        <job_chain_node state="success"/>
        <job_chain_node state="error"/>
      </job_chain>
      

      Desired Behavior

      The possibly NullPointerException should be fixed.

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              oh Oliver Haufe
              Chanchal Khatri Chanchal Khatri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: