line / line/centraldogma

Test failure: ZooKeeperCommandExecutorTest.hierarchicalQuorumsWithFailOver()

Open
#574 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
668
Forks
135
Avg merge
4d 19h
Merged PRs (30d)
7

Description

```
ZooKeeperCommandExecutorTest > hierarchicalQuorumsWithFailOver() FAILED
org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a lambda expression in com.linecorp.centraldogma.server.internal.replication.ZooKeeperCommandExecutorTest that uses com.linecorp.centraldogma.server.internal.replication.Replica, com.linecorp.centraldogma.server.internal.replication.Replicacom.linecorp.centraldogma.server.command.Command
Wanted but not invoked:
function.apply(
CreateRepositoryCommand{type=CREATE_REPOSITORY, timestamp=1617084941865, author=Author["System" ], projectName=project, repositoryName=repo1}
);
-> at com.linecorp.centraldogma.server.internal.replication.ZooKeeperCommandExecutorTest.lambda$hierarchicalQuorumsWithFailOver$15(ZooKeeperCommandExecutorTest.java:295)
Actually, there were zero interactions with this mock.
within 10 seconds.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:679)
at com.linecorp.centraldogma.server.internal.replication.ZooKeeperCommandExecutorTest.hierarchicalQuorumsWithFailOver(ZooKeeperCommandExecutorTest.java:295)
Caused by:
Wanted but not invoked:
function.apply(
CreateRepositoryCommand{type=CREATE_REPOSITORY, timestamp=1617084941865, author=Author["System" ], projectName=project, repositoryName=repo1}
);
-> at com.linecorp.centraldogma.server.internal.replication.ZooKeeperCommandExecutorTest.lambda$hierarchicalQuorumsWithFailOver$15(ZooKeeperCommandExecutorTest.java:295)
Actually, there were zero interactions with this mock.
at com.linecorp.centraldogma.server.internal.replication.ZooKeeperCommandExecutorTest.lambda$hierarchicalQuorumsWithFailOver$15(ZooKeeperCommandExecutorTest.java:295)

```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running ZooKeeperCommandExecutorTest.hierarchicalQuorumsWithFailOver() and inspect the failure at line 295. Trace the replication and failover behavior around ZooKeeperCommandExecutorTest and determine why the mock receives no CreateRepositoryCommand interaction. Done means the test completes without the Awaitility timeout and observes the expected command invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.