Skip to content

Commit

Permalink
Merge pull request apache#14546 : [BEAM-12173] use toMinutes
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo authored Apr 19, 2021
2 parents a89879f + dc665d5 commit ffcc5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ Table tryCreateTable(Table table, BackOff backoff, Sleeper sleeper) throws IOExc
table.getTableReference().getProjectId(),
table.getTableReference().getDatasetId(),
table.getTableReference().getTableId(),
TimeUnit.MILLISECONDS.toSeconds(RETRY_CREATE_TABLE_DURATION_MILLIS) / 60.0);
TimeUnit.MILLISECONDS.toMinutes(RETRY_CREATE_TABLE_DURATION_MILLIS));
retry = true;
}
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ public void testCreateTableRetry() throws IOException {
verifyNotNull(ret.getTableReference());
expectedLogs.verifyInfo(
"Quota limit reached when creating table project:dataset.table, "
+ "retrying up to 5.0 minutes");
+ "retrying up to 5 minutes");
}

/** Tests that {@link DatasetServiceImpl#insertAll} uses the supplied {@link ErrorContainer}. */
Expand Down

0 comments on commit ffcc5e0

Please sign in to comment.