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

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: