Eric Olander created KAFKA-1818: ----------------------------------- Summary: 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: Neha Narkhede Priority: Trivial
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)