Skip to content

Conversation

@kjain110
Copy link
Contributor

No description provided.

@kjain110 kjain110 marked this pull request as ready for review October 29, 2025 12:12
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
62.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

}

@Override
public String append(String path, InputStream newData) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kjain110 , the append() method should not be used at all, as it has been deprecated in the library. The current implementation first downloads all the data, updates it, and then re-uploads everything, which is expected to be very slow. The main idea is to refactor the logic to completely eliminate the use of the append() method, since it would require different implementations for AWS S3 and Minio in both cases.

}

public RemoteStorageWriter writer(String path) {
return getRemoteStorageWriter(path, 1024);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be useful to store 1024 as named constant.

return client.write(sanitizePath(path), is);
}

public String write(String path, byte[] bytes) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to avoid operations with intermediate byte[] because this potentially leads to memory peaks and OOM as a result?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants