You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/10/17 16:58:59 UTC

[iceberg] branch master updated: AWS: Fix format string in error message (#5995)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 08ac381e05 AWS: Fix format string in error message (#5995)
08ac381e05 is described below

commit 08ac381e0565ebeebb7f74359d5f50a871ab452a
Author: Adam Szita <40...@users.noreply.github.com>
AuthorDate: Mon Oct 17 18:58:54 2022 +0200

    AWS: Fix format string in error message (#5995)
    
    Change-Id: Ib131ad89ddc554238e534f1d03cefefacd428ebe
---
 aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java b/aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java
index 2650af9c26..66205d7741 100644
--- a/aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java
+++ b/aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java
@@ -829,8 +829,9 @@ public class AwsProperties implements Serializable {
               properties, S3FILEIO_MULTIPART_SIZE, S3FILEIO_MULTIPART_SIZE_DEFAULT);
     } catch (NumberFormatException e) {
       throw new IllegalArgumentException(
-          "Input malformed or exceeded maximum multipart upload size 5GB: %s"
-              + properties.get(S3FILEIO_MULTIPART_SIZE));
+          String.format(
+              "Input malformed or exceeded maximum multipart upload size 5GB: %s",
+              properties.get(S3FILEIO_MULTIPART_SIZE)));
     }
     this.s3FileIoMultipartThresholdFactor =
         PropertyUtil.propertyAsDouble(