jineshparakh opened a new pull request, #17713: URL: https://github.com/apache/pinot/pull/17713
`Storage.get(BlobId)` returns null when the blob does not exist in GCS [1]. The `delete()` method already handles this with a null check `(blob != null && blob.delete())`, but `deleteBatch()` did not, causing a NPE when calling getBlobId() on the null return value. - Added null check in `deleteBatch` to gracefully skip non-existent blobs - Added guard to avoid calling `_storage.delete()` with an empty list [1] https://docs.cloud.google.com/java/docs/reference/google-cloud-storage/latest/com.google.cloud.storage.Storage#com_google_cloud_storage_Storage_get_com_google_cloud_storage_BlobId_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
