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/SeekableByteChannelPrefetcher.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,7 @@ public int read(ByteBuffer dst) throws IOException {
191
191
try {
192
192
src = fetch(position);
193
193
} catch (InterruptedExceptione) {
194
+
Thread.currentThread().interrupt();
194
195
return0;
195
196
} catch (ExecutionExceptione) {
196
197
thrownewRuntimeException(e);
@@ -341,11 +342,12 @@ public void close() throws IOException {
341
342
}
342
343
}
343
344
} catch (InterruptedExceptione) {
344
-
System.out.println("Timed out while waiting for channels to close.");
0 commit comments