Skip to content

Commit

Permalink
Update MergeQueries.java
Browse files Browse the repository at this point in the history
  • Loading branch information
FreCap committed Mar 16, 2023
1 parent 3f69fe2 commit 18a46dd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ private void mergeFlush(
if (BigQueryErrorResponses.isCouldNotSerializeAccessError(e)) {
attempt++;
if (attempt == 30) {
throw new BigQueryConnectException("After retrying running " + attempt + " times, it still failed", e);
throw new BigQueryConnectException("Failed to merge rows to destination table `" + destinationTable + "` within " + attempt
+ " attempts due to BQ write serialization error.", e);
}
SleepUtils.waitRandomTime(10000, 20000);
} else {
Expand Down

0 comments on commit 18a46dd

Please sign in to comment.