From 7f1d79ce9653d6a674d97f13469024c93f633ab5 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Fri, 13 Nov 2026 21:53:10 +0000 Subject: [PATCH] chore(pubsub): disable PublisherImplTest.testPermanentErrorOnHedgedAttemptDiscarded The test intermittently times out because of a deadlock in publish hedging, tracked in https://github.com/googleapis/google-cloud-java/issues/15008. It is a bug in the library rather than a timing problem in the test. Disable the test until the deadlock is resolved so that it stops failing unrelated changes. It should be re-enabled together with that change. b/580634974 --- .../java/com/google/cloud/pubsub/v1/PublisherImplTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 175694ae1573..44737b8f78ca 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -1698,6 +1698,9 @@ public void testNoHedgingIfOriginalFailsImmediately() throws Exception { shutdownTestPublisher(publisher); } + // Disabled because it intermittently hits a deadlock in publish hedging. That is a bug in the + // library, not a timing problem in this test, so raising the timeout below would not help. + @Ignore("https://github.com/googleapis/google-cloud-java/issues/15008") @Test public void testPermanentErrorOnHedgedAttemptDiscarded() throws Exception { Publisher publisher = getPublisherWithHedge(Duration.ofMillis(100), 0.2f, 20);