You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I do close in try-with resources way I got "java.lang.IllegalStateException: Connection pool shut down" on s3's connection pool.
Using S3FileIO impl to store on S3.
Version: 1.7.1 (latest release).
try (FileAppender<Record> appender = createFileAppender(table, outputFile)) {
records.forEach(appender::add);
} catch (final IOException ex) {
log.error("Cannot append records to table {}: {}", table.name(), ex.getMessage(), ex);
throw new IllegalStateException("Cannot append records to table " + table.name(), ex);
}
FileAppender<Record> createFileAppender( final Table table, final OutputFile outputFile) throws IOException {
return Parquet.write(outputFile)
.forTable(table)
.schema(table.schema())
.createWriterFunc(GenericParquetWriter::buildWriter)
.build();
}
}
When I do close in try-with resources way I got "java.lang.IllegalStateException: Connection pool shut down" on s3's connection pool.
Using S3FileIO impl to store on S3.
Version: 1.7.1 (latest release).
The text was updated successfully, but these errors were encountered: