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

Refactor util.JsonProtocol for evolvability

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.0.0
    • None
    • Spark Core

    Description

      The current design is not very evolvable. For backwards compatibility, every time we add a new field in one of the relevant objects (e.g. StageInfo) we need to add a default value to the field. Otherwise, the test suite still passes, but it throws some sort of obscure json exception if the field does not exist.

      We should let a common interface (JsonSerializable) handle this logic, so we don't need to do it for all classes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrewor14 Andrew Or
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: