Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9755 Implement versioning scheme for features
  3. KAFKA-10624

[Easy] FeatureZNodeStatus should use sealed trait instead of Enumeration

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0
    • Component/s: None
    • Labels:
      None

      Description

      In Scala, we prefer sealed traits over Enumeration since the former gives you exhaustiveness checking. With Scala Enumeration, you don't get a warning if you add a new value that is not handled in a given pattern match.

      This Jira tracks refactoring enum FeatureZNodeStatus from an enum to a sealed trait. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kprakasam Kowshik Prakasam
                Reporter:
                kprakasam Kowshik Prakasam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: