googleapis / googleapis/java-pubsublite

pubsublite.cloudpubsub.internal.AssigningSubscriberTest: assignerErrorFailsSubs failed

Open
#1,164 6 comments 0 reactions 1 assignee Claimed by @dpcollins-google View on GitHub
api: pubsublite flakybot: flaky flakybot: issue priority: p2 type: bug
Dominant language
Java
Stars
42
Forks
27
PR merge metrics
No merged PRs in 30d

Description

This test failed!

To configure my behavior, see [the Flaky Bot documentation](https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot).

If I'm commenting on this issue too often, add the `flakybot: quiet` label and
I will stop commenting.

---

commit: 50fbb2247231ba0475ec04bb1a7b8b788603b7b9
buildURL: [Build Status](https://source.cloud.google.com/results/invocations/5612aca3-c896-4e80-a581-d7f25ec195b8), [Sponge](http://sponge2/5612aca3-c896-4e80-a581-d7f25ec195b8)
status: failed
Test output

Wanted but not invoked:

fakeSubscriber.awaitTerminated();
-> at com.google.cloud.pubsublite.cloudpubsub.internal.AssigningSubscriberTest.assignerErrorFailsSubs(AssigningSubscriberTest.java:212)

However, there were exactly 4 interactions with this mock:
fakeSubscriber.addListener(
Mock for Listener, hashCode: 462507574,
java.util.concurrent.ThreadPoolExecutor@29f3ea39[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 34]
);
-> at com.google.cloud.pubsublite.internal.testing.RetryingConnectionHelpers.whenTerminated(RetryingConnectionHelpers.java:61)

fakeSubscriber.stopAsync();
-> at com.google.cloud.pubsublite.internal.wire.ApiServiceUtils.blockingShutdown(ApiServiceUtils.java:71)

fakeSubscriber.doStop();
-> at com.google.api.core.AbstractApiService$InnerService.doStop(AbstractApiService.java:152)

fakeSubscriber.notifyStopped();
-> at com.google.cloud.pubsublite.internal.testing.FakeApiService.doStop(FakeApiService.java:41)

at com.google.cloud.pubsublite.cloudpubsub.internal.AssigningSubscriberTest.assignerErrorFailsSubs(AssigningSubscriberTest.java:212)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.