[
https://issues.apache.org/jira/browse/KAFKA-10644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Gustafson resolved KAFKA-10644.
-------------------------------------
Resolution: Fixed
> Fix VotedToUnattached test error
> --------------------------------
>
> Key: KAFKA-10644
> URL: https://issues.apache.org/jira/browse/KAFKA-10644
> Project: Kafka
> Issue Type: Sub-task
> Components: unit tests
> Reporter: dengziming
> Assignee: dengziming
> Priority: Minor
>
> codes of `QuorumStateTest.testVotedToUnattachedHigherEpoch` is not in
> consistent with its name, the method name is VotedToUnattached, but the code
> is UnattachedToUnattached:
> ```
> state.initialize(new OffsetAndEpoch(0L, logEndEpoch));
> state.transitionToUnattached(5);
> long remainingElectionTimeMs =
> state.unattachedStateOrThrow().remainingElectionTimeMs(time.milliseconds());
> time.sleep(1000);
> state.transitionToUnattached(6);
> ```
--
This message was sent by Atlassian Jira
(v8.3.4#803005)