You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2015/11/23 04:31:11 UTC

[jira] [Updated] (KAFKA-1818) Code cleanup in ReplicationUtils including unit test

     [ https://issues.apache.org/jira/browse/KAFKA-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guozhang Wang updated KAFKA-1818:
---------------------------------
    Assignee: Eric Olander  (was: Neha Narkhede)

> Code cleanup in ReplicationUtils including unit test
> ----------------------------------------------------
>
>                 Key: KAFKA-1818
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1818
>             Project: Kafka
>          Issue Type: Improvement
>          Components: replication
>    Affects Versions: 0.8.1.1
>            Reporter: Eric Olander
>            Assignee: Eric Olander
>            Priority: Trivial
>             Fix For: 0.9.0.0
>
>         Attachments: 0001-KAFKA-1818-clean-up-code-to-more-idiomatic-scala-usa.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)