mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
object-lock command improvement suggestions #840
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#840
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vkarak1 on GitHub (Oct 25, 2022).
Is your feature request related to a problem? Please describe.
Could you please consider two suggestions to the object-lock command:
Store lock object in NeoFS: client failure: status: code = 1024 message = lock operation failedneofs-cli object lock -r node1:8080 -w /etc/neofs/storage/wallet.json --expire-at 10 893dGYPLgRNSiqVBW61J7aP1xLvsYzGxQViNZ6smmUx5 8sRdhwH6ERxjC4cpXEiNcVYaeYudGynpzxsD6wfCJSGkNeoFS Storage node
Version: v0.33.0-31-ge1be0180
GoVersion: go1.18.4
@carpawell commented on GitHub (Nov 14, 2022):
@cthulhu-rider, @fyrchik, @realloc,
1.took another form after the fix. Is it the expected kind of that error representation (forwarding, wrapping and all)?2.Was fixed via the #1998.@carpawell commented on GitHub (Nov 30, 2022):
Closed via #1998.
@carpawell commented on GitHub (Dec 12, 2022):
I misunderstand the
1.point, it is about an error description, not about an error chain.The problem is in that line: we just do not have enough information about the errors we get. I guess it was done on purpose: we iterate over some shard set and we do not have any error that could wrap some other errors, so it is just not clear what error we can return here: the first, the last of try to add some API error that could wrap all errors from all shards and return that "encapsulated error set".
The case that led to that error creation was RO mode for every node's shard. So what message could be printed here? RO shard? That would mean that the last shard failed because of RO but no info about the previous ones. What if the first one (the desired one) has RO mode? print nothing cause that is not an error and we did lock an object?
/cc @fyrchik, @vkarak1, @acid-ant, @cthulhu-rider