v.22.7Improvement
S3 Object Removal Enhancements and GCP Compatibility Improvements
S3 single objects are now removed withRemoveObjectRequest. Implement compatibility with GCP which did not allow to useremoveFileIfExistseffectively breaking approximately half ofremovefunctionality. Automatic detection forDeleteObjectsS3 API, that is not supported by GCS. This will allow to use GCS without explicitsupport_batch_delete=0in configuration. #37882 (Vladimir Chebotarev).
Why it matters
Previously, theremoveFileIfExists method and batch deletions via DeleteObjects API broke about half of the remove functionality on GCS due to lack of support. This update enables automatic detection of the unsupported batch delete operation and uses single object delete requests instead, allowing seamless use of GCS without needing to disable batch deletes explicitly via support_batch_delete=0 in the configuration.How to use it
No explicit user action is required. The system now automatically detects unsupported batch deletion on GCS and uses single object removal withRemoveObjectRequest. To ensure compatibility, users do not need to set support_batch_delete=0 when using GCS.