Deleting objects/bucket when object is missing or removed in metabase #78

Closed
opened 2023-04-04 12:28:58 +00:00 by alexvanin · 0 comments

In #71 we fixed a case when tree service or fstree/blobovniza are missing in the storage.

However there are still cases when object is not accessible from the metabase:

  • object is considered as non-existing,
  • object is already removed by node.

We can use @dkirillov proposal:

Actually, to delete bucket when we not found object in object service, we have to update listing (to skip objects that exist only in tree service) or delete object from tree service.

Originally posted by @dkirillov in #71 (comment)

Deleting values from tree services when object not found seems dangerous for me, because this error might be unrelated to actual object placement. However object is already removed gives us some context and we can consider removing data from the tree service in this case.

/cc @dkirillov, @ironbee, @realloc

In #71 we fixed a case when tree service or fstree/blobovniza are missing in the storage. However there are still cases when object is not accessible from the metabase: - object is considered as non-existing, - object is already removed by node. We can use @dkirillov proposal: > Actually, to delete bucket when we not found object in object service, we have to update [listing](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/01afa1cae4253d7dd375f1cf52d1f65e66d5ca06/api/layer/object.go#L591) (to skip objects that exist only in tree service) or delete object from tree service. > > _Originally posted by @dkirillov in https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pulls/71#issuecomment-4486_ Deleting values from tree services when `object not found` seems dangerous for me, because this error might be unrelated to actual object placement. **However** `object is already removed` gives us some context and we can consider removing data from the tree service in this case. /cc @dkirillov, @ironbee, @realloc
alexvanin added this to the v0.28.0 milestone 2023-04-04 12:29:39 +00:00
ironbee was assigned by alexvanin 2023-04-04 12:30:02 +00:00
alexvanin modified the milestone from v0.28.0 to v0.27.0 2023-04-04 15:06:55 +00:00
alexvanin modified the milestone from v0.27.0 to v0.28.0 2023-04-12 14:20:23 +00:00
snegurochka added the
bug
discussion
labels 2023-05-03 17:15:02 +00:00
alexvanin self-assigned this 2023-05-24 15:07:03 +00:00
ironbee was unassigned by alexvanin 2023-05-24 15:07:03 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#78
There is no content yet.