googleapis / googleapis/google-cloud-java

[java-pubsub] PublisherImplTest.testResumePublish hangs

Đang mở
#13,394 0 bình luận 0 reaction 1 người được giao Được @michaelpri10 nhận Xem trên GitHub
api: pubsub priority: p2
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.