Update log record in DeleteMultipleObject #300

Closed
opened 2024-02-01 08:12:30 +00:00 by alexvanin · 0 comments

When failure happens during DeleteMultipleObject operation, log contains a set of objects and a set of errors. It seems that they are not aligned properly. objects value in the log record is based on toRemove slice, which is initialized with all objects from request.

Describe the solution you'd like

Align set of errors and set of objects in log record.

Describe alternatives you've considered

Do not print this data in INFO log level at all. However this is kinda useful to investigate issues.

/cc @dkirillov @anikeev-yadro

## Is your feature request related to a problem? Please describe. When failure happens during `DeleteMultipleObject` operation, log contains a set of objects and a set of errors. It seems that they are not aligned properly. `objects` value in the log record is based on [toRemove](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/4804904d9d7ba6251ef1c6efe233bba064f7fbec/api/handler/delete.go#L219) slice, which is initialized with [all](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/4804904d9d7ba6251ef1c6efe233bba064f7fbec/api/handler/delete.go#L198) objects from request. ## Describe the solution you'd like Align set of errors and set of objects in log record. ## Describe alternatives you've considered Do not print this data in INFO log level at all. However this is kinda useful to investigate issues. /cc @dkirillov @anikeev-yadro
mbiryukova self-assigned this 2024-02-16 09:05:33 +00:00
alexvanin added this to the v0.29.0 milestone 2024-05-27 10:02:55 +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#300
There is no content yet.