Samrat002 commented on code in PR #27970:
URL: https://github.com/apache/flink/pull/27970#discussion_r3110704838
##########
flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3BulkCopyHelper.java:
##########
@@ -181,8 +226,42 @@ private void
waitForCopies(List<CompletableFuture<CompletedCopy>> futures) throw
Thread.currentThread().interrupt();
throw new IOException("Bulk copy interrupted", e);
} catch (ExecutionException e) {
- throw new IOException("Bulk copy failed", e.getCause());
+ Throwable cause = e.getCause();
+ if (isConnectionPoolExhausted(cause)) {
+ throw new IOException(
+ String.format(
+ "S3 connection pool exhausted during bulk
copy. "
+ + "The configured connection pool size
(%d) could not serve "
+ + "the concurrent download requests
(%d). "
+ + "Consider reducing '%s' or
increasing '%s'.",
+ maxConnections,
+ maxConcurrentCopies,
+ "s3.bulk-copy.max-concurrent",
+ "s3.connection.max"),
Review Comment:
added the change. PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]