Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11817 Ongoing scheduler improvements
  3. CDAP-11496

Improve JobQueueDataset/ConstraintCheckerService implementation

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: App Fabric, Scheduler, Workflow
    • Labels:
      None
    • Rank:
      1|i001e7:

      Description

      This is a JIRA to track changes that need to happen to JobQueueDataset and ConstraintCheckerService.

      1. ConstraintCheckerService#runReadyJobs should not limit the number of programs launched after checking constraints to one.

      2. Constraints of the Job should be able to return a 'nextCheckTime', and the ConstraintCheckerService shouldn't need to check those constraints again until that time.
      https://github.com/caskdata/cdap/pull/8720#discussion_r116291037

      3. If the scheduler service crashes while a job is in PENDING_LAUNCH and in the in-memory `readyJobs`, then upon startup, they will have state PENDING_LAUNCH, but not be in `readyJobs`. Because of their state, we will not check their constraints, and they will not ever be executed.
      https://github.com/caskdata/cdap/pull/8720#discussion_r116331593

        Attachments

          Activity

            People

            • Assignee:
              ali.anwar Ali Anwar
              Reporter:
              ali.anwar Ali Anwar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: