Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ public static CloudStorageFileSystem forBucket(
if (config.useUserProjectOnlyForRequesterPaysBuckets()) {
if (Strings.isNullOrEmpty(config.userProject())) {
throw new IllegalArgumentException(
"If useUserProjectOnlyForRequesterPaysBuckets is set, then userProject must be set too.");
"If useUserProjectOnlyForRequesterPaysBuckets is set, then userProject must be set"
+ " too.");
}
// detect whether we want to pay for these accesses or not.
if (!provider.requesterPays(bucket)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public void testReadRetry() throws IOException {
new IOException(
"outer",
new IOException(
"Connection closed prematurely: bytesRead = 33554432, Content-Length = 41943040"))))
"Connection closed prematurely: bytesRead = 33554432, Content-Length ="
+ " 41943040"))))
.thenReturn(1);
assertThat(chan.position()).isEqualTo(0L);
assertThat(chan.read(buffer)).isEqualTo(1);
Expand Down Expand Up @@ -131,11 +132,13 @@ public void testReadRetryEventuallyGivesUp() throws IOException {
.thenThrow(
new StorageException(
new IOException(
"Connection closed prematurely: bytesRead = 33554432, Content-Length = 41943040")))
"Connection closed prematurely: bytesRead = 33554432, Content-Length ="
+ " 41943040")))
.thenThrow(
new StorageException(
new IOException(
"Connection closed prematurely: bytesRead = 33554432, Content-Length = 41943040")))
"Connection closed prematurely: bytesRead = 33554432, Content-Length ="
+ " 41943040")))
.thenReturn(1);
assertThat(chan.position()).isEqualTo(0L);
chan.read(buffer);
Expand Down
Loading