[
https://issues.apache.org/jira/browse/HDDS-12637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-12637:
------------------------------------
Description: Ozone uses 8KB buffer when creating tarball, 1KB for
extracting entries. It should be increased to 1MB. (was: When adding files to
tarballs, Ozone currently uses the default buffer size of 8KB. It should use
configurable size like S3 Gateway:
{code:title=https://github.com/apache/ozone/blob/953e7188727c4fd95e81c5b1b2291c679f5a213e/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java#L1522-L1534}
private int getIOBufferSize(long fileLength) {
if (bufferSize == 0) {
// this is mainly for unit tests as init() will not be called in the unit
tests
LOG.warn("buffer size is set to {}", IOUtils.DEFAULT_BUFFER_SIZE);
bufferSize = IOUtils.DEFAULT_BUFFER_SIZE;
}
if (fileLength == 0) {
// for empty file
return bufferSize;
} else {
return fileLength < bufferSize ? (int) fileLength : bufferSize;
}
}
{code})
> Increase max buffer size for adding tarball entries
> ---------------------------------------------------
>
> Key: HDDS-12637
> URL: https://issues.apache.org/jira/browse/HDDS-12637
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
>
> Ozone uses 8KB buffer when creating tarball, 1KB for extracting entries. It
> should be increased to 1MB.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]