Skip to content

Commit 30d341d

Browse files
committed
Skip deleted objects in lifecycle requeue batch instead of aborting
When replaying failed archive batches, a deleted object causes ObjNotFound in handleBatch which aborts async.reduce and silently drops all remaining objects. Log the error and continue processing.
1 parent 19ddda6 commit 30d341d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extensions/lifecycle/tasks/LifecycleRequeueTask.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ class LifecycleRequeueTask extends BackbeatTask {
141141
log,
142142
(err, res) => {
143143
if (err) {
144+
if (err.name === 'ObjNotFound') {
145+
log.error('object not found, skipping', {
146+
bucketName, objectKey, objectVersion,
147+
});
148+
return nextObject(null, objsPerBucket);
149+
}
144150
return nextObject(err);
145151
}
146152

0 commit comments

Comments
 (0)