googleapis / googleapis/google-cloud-java

[java-pubsub] PublisherImplTest.testResumePublish hangs

オープン
#13,394 コメント 0 件 リアクション 0 件 担当者 1 名 @michaelpri10 が担当を希望しています GitHub で見る
api: pubsub priority: p2
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

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

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

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