[java-pubsub] PublisherImplTest.testResumePublish hangs

Open
#13,394 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@michaelpri10 is already working on this.

Since Jun 9, 2026.

Assessment

This issue has not been assessed yet.

Description

api: pubsub priority: p2

In the release PR run https://github.com/googleapis/google-cloud-java/actions/runs/27152757144/job/80148008212?pr=13373, the unit test PublisherImplTest in google-cloud-pubsub module got stuck and caused the GHA run to timeout after 6 hours.

Analyzing the job logs of previous timed-out release runs (e.g. https://github.com/googleapis/google-cloud-java/actions/runs/27024407145), the hang consistently occurs inside com.google.cloud.pubsub.v1.PublisherImplTest when running on Java 8 runtime.

Specifically, the testResumePublish test case invokes sendTestMessageWithOrderingKey which triggers a publish call to the mock server FakePublisherServiceImpl. Inside FakePublisherServiceImpl.publish(), it calls publishResponses.take(), which is a blocking queue call. In Java 8 runtime, this blocks the main thread, resulting in a deadlock before testPublisherServiceImpl.addPublishResponse(...) can be called.

This test was previously disabled due to similar timeout issues (Issue #13051) but was recently re-enabled. We need to investigate why it deadlocks under Java 8 and prevent it from hanging.

Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
192

Getting set up

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.

More from googleapis/google-cloud-java

All issues in googleapis/google-cloud-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.