You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Reinitialize streams in an unbounded executor (#1027)
Stream initializations can sometimes be stalled, which starves tasks using the alarm executor. This performs reinitialization in an unbounded (futures) executor.
Copy file name to clipboardExpand all lines: google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/internal/wire/RetryingConnectionImpl.java
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -199,17 +199,22 @@ public final void onError(Throwable t) {
199
199
backoffTime, streamDescription());
200
200
ScheduledFuture<?> retry =
201
201
SystemExecutors.getAlarmExecutor()
202
-
.schedule(
203
-
() -> {
204
-
try {
205
-
observer.triggerReinitialize(statusOr.get());
206
-
} catch (Throwablet2) {
207
-
logger.atWarning().withCause(t2).log("Error occurred in triggerReinitialize.");
0 commit comments