Commit d5e6e1e
committed
[fix](rest-s3)Set AWS Request Checksum Calculation only if not set, avoid issues on non-S3 storage
AWS SDK for Java v2 uses the system property AwsSystemSetting.AWS_REQUEST_CHECKSUM_CALCULATION to control request payload checksum calculation.
↳
According to the official discussion AWS SDK v2 Discussion #5802
:
↳
By default, the SDK may automatically calculate checksums when required.
↳
For AWS S3, setting the default value "WHEN_REQUIRED" ensures checksums are calculated only when necessary, providing both compatibility and performance benefits.
↳
For non-S3 object storage (such as COS, OSS, OBS), using this default value may cause errors, for example:
↳
aws-chunked encoding is not supported with the specified x-amz-content-sha256 value
because these services do not support AWS-specific chunked encoding or SHA256 checksum.1 parent 1d8a5a1 commit d5e6e1e
File tree
1 file changed
+8
-2
lines changed- fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore
1 file changed
+8
-2
lines changedfe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
341 | 342 | | |
342 | | - | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
| |||
0 commit comments