Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-243

Add method is called on already existing jobspec

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1-incubating, 0.2
    • 0.3
    • resource manager
    • None
    • JPL internal JIRA

    Description

      LRUScheduler removes job, then adds it back if can't schedule which causes problem with Job Repo.

      In LRUScheduler:

      public void run() { .... exec = myJobQueue.getNextJob(); .... (on failure) myJobQueue.addJob(spec); }
      

      In myJobQueue.getNextJob() (where myJobQueue is instanceof JobStack) the JobSpec is deleted and in addJob repo.addJob(JobSpec) is called as shown:

      public String addJob(JobSpec spec) throws JobQueueException { String jobId = safeAddJob(spec); .... }
      private String safeAddJob(JobSpec spec) { .... return this.repo.addJob(spec); .... }
      

      Point being: JobRepository should either do away with updateJob(JobSpec) method since in current implementation addJob(JobSpec) must support update to work properly, or replace getNextJob() with two different methods: peek() and delete(JobSpec)

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            bfoster Brian Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: