Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19567

Support some Schedulable variables immutability and access

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Scheduler, Spark Core
    • None

    Description

      Support some Schedulable variables immutability and access

      Some Schedulable variables need refactoring for immutability and access modifiers as follows:

      • from vars to vals(if there is no requirement): This is important to support immutability as much as possible.
        Sample => Pool: weight, minShare, priority, name and taskSetSchedulingAlgorithm.
      • access modifiers: Specially, vars access needs to be restricted from other parts of codebase to prevent potential side effects. Sample:
        Sample => TaskSetManager: tasksSuccessful, totalResultSize, calculatedTasks etc...

      Attachments

        Activity

          People

            erenavsarogullari Eren Avsarogullari
            erenavsarogullari Eren Avsarogullari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: