jackye1995 opened a new pull request #1749:
URL: https://github.com/apache/iceberg/pull/1749
When used in `BaseMetastoreTableOperations`, in
`TableMetadataParser.internalWrite()`, an output stream is closed twice because
of the closure of the output stream and its writer:
```
try (OutputStream ou = isGzip ? new GZIPOutputStream(stream) : stream;
OutputStreamWriter writer = new OutputStreamWriter(ou,
StandardCharsets.UTF_8)) {
...
}
```
This causes issue in `S3OutputStream` because the stream uploads the file
from local to S3 during the call to close.
Also, `S3FileIO` cannot be properly initialized when there are multiple HTTP
client builders available in the Java class path at runtime, so `AwsClientUtil`
is used to provide a stable default client for `S3FileIO` to use.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]