mirror of
https://github.com/nspcc-dev/neofs-s3-gw.git
synced 2026-03-01 04:29:15 +00:00
Lock errors #245
Labels
No labels
I2
I2
I3
I4
S2
S3
S4
S4
U0
U1
U2
U2
U3
U4
U4
auth-mate
blocked
bug
config
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
question
security
test
tree-service
tree-service
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-s3-gw#245
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 @KirillovDenis on GitHub (Jun 6, 2022).
Originally assigned to: @KirillovDenis on GitHub.
Node version
nspcc-dev/neofs-node@4a50bdfa00The problem seems to be similar to https://github.com/nspcc-dev/neofs-node/pull/1472/commits
Test tries to remove locked object using bypass (in NeoFS the lock cannot be deleted):
Test tries to short the until date (in NeoFS the lock cannot be deleted):
related to #501
@KirillovDenis commented on GitHub (Jun 8, 2022):
The following tests will fail anyway because they try to delete object (that is locked) but NeoFS doesn't allow this.
But there is another problem: missed retention lock info if both lock types are provided.
We need use
ifinstead ofelse ifnspcc-dev/neofs-s3-gw@8f23f4fbc4/internal/neofs/tree.go (L910)@KirillovDenis commented on GitHub (Jun 8, 2022):
I suppose we can close this issue by marking tests as failed (in compatibility table). Or we can postpone this if the lock removal policy will be changed
@alexvanin commented on GitHub (Jun 9, 2022):
Try these tests on master branch. Just wonder if they gonna fail too.
Branch with LOCK fix in neofs-node.
@KirillovDenis commented on GitHub (Jun 9, 2022):
Some of this tests pass on
masterbranch because ofnspcc-dev/neofs-s3-gw@0e27fea8f2/api/handler/delete.go (L89-L92)IsErrObjectLockeddoesn't work as expected.nspcc-dev/neofs-s3-gw@0e27fea8f2/api/handler/delete.go (L143-L151)In
tree-servicebranch this was fixednspcc-dev/neofs-s3-gw@575947e035/api/handler/delete.go (L144-L152)