[java-pubsub] PublisherImplTest.testResumePublish hangs

オープン
#13,394 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@michaelpri10 がすでに取り組んでいます。

2026年6月9日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
2日 14時間
マージ済み PR(30日)
192

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/google-cloud-java のほかの issue

googleapis/google-cloud-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。