[destination-s3] Deferred deletion incorrectly deleting newly created files #45086
Labels
area/connectors
Connector related issues
community
connectors/destination/s3
team/destinations
Destinations team's backlog
type/bug
Something isn't working
Connector Name
destination-s3
Connector Version
1.0.4
What step the error happened?
During the sync
Relevant information
A recent change to the S3 destination regarding 'Deferred deletes': cba3ccd
According to the logs, the destination checks if files exist tagged with the CURRENT generation (x-amz-meta-ab-generation-id) otherwise marks the existing files for deletion AT THE END. Files exist in the bucket from the previous sync generation (not current).
Sync runs, overwrites existing files as expected with a new generation ID. Then performs the aforementioned deletion (same file names) at the end. Every second sync I run results in no files because they were deleted. Deletes should not be deferred or it should be looking for previous generation files. Perhaps a solution could be to check files marked for deletion don't match those just created.
Please let me know if I've got something wrong here. However, we've been charged for a lot of syncs over the last week that had all had the data files immediately deleted. Let me know if you need anything else.
Kind regards.
Relevant log output
Contribute
The text was updated successfully, but these errors were encountered: