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