Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1818

Code cleanup in ReplicationUtils including unit test

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.8.1.1
    • 0.9.0.0
    • replication
    • None

    Description

      Code in getLeaderIsrAndEpochForPartition() and parseLeaderAndIsr() was essentially reimplementing the flatMap function on the Option type. The attached patch refactors that code to more idiomatic Scala and provides a unit test over the affected code.

      Attachments

        Activity

          People

            olandere Eric Olander
            olandere@gmail.com Eric Olander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: