You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2020/10/27 23:42:00 UTC
[jira] [Resolved] (KAFKA-10644) Fix VotedToUnattached test error
[ 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)