Skip to content

Commit 9cae675

Browse files
authored
fix: improve error messaging for LRO CancellationException (#3873)
1 parent 2d02344 commit 9cae675

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gax-java/gax/src/main/java/com/google/api/gax/longrunning/OperationTimedPollAlgorithm.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ public boolean shouldRetry(TimedAttemptSettings nextAttemptSettings)
9191
if (LOGGER.isLoggable(Level.WARNING)) {
9292
LOGGER.log(
9393
Level.WARNING,
94-
"The task has been cancelled. Please refer to "
94+
"The long running operation request is no longer being tracked. "
95+
+ "Possible reasons include a timeout or "
96+
+ "exceeding the maximum number of poll attempts."
97+
+ " Please refer to "
9598
+ LRO_TROUBLESHOOTING_LINK
9699
+ " for more information");
97100
}

0 commit comments

Comments
 (0)