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
Copy file name to clipboardExpand all lines: google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannel.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ public int read(ByteBuffer dst) throws IOException {
120
120
// but here at this higher level we can retry them.
121
121
reopens++;
122
122
if (reopens > maxChannelReopens) {
123
-
thrownewStorageException(exs.getCode(), "All reopens failed", exs);
123
+
thrownewStorageException(exs.getCode(), "All " + maxChannelReopens + " reopens failed", exs);
124
124
}
125
125
sleepForAttempt(reopens);
126
126
innerOpen();
@@ -134,7 +134,7 @@ public int read(ByteBuffer dst) throws IOException {
134
134
// "While in principle you should be able to retry, we already did that
135
135
// for you a few times and it still didn't work so we wouldn't recommend
136
136
// further retries."
137
-
thrownewStorageException(exs.getCode(), "All retries failed", exs);
137
+
thrownewStorageException(exs.getCode(), "All " + maxRetries + " retries failed", exs);
0 commit comments