Clarify node behavior with maintenance
status #594
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#594
Loading…
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?
Scenario:
REP 4
placement policyCurrent bevior
if we set copies number to
2
forput
operations we getIs such behavior expected ?
Steps to reproduce:
1-2:
step 3-5:
(test must be run in
frostf-sdk-go/pool
package)Node version: c3e23a14 (current master)
I have tested it on master and everything works as expected:
The object can be found because we do not remove partially place objects currently.
@fyrchik what about removing? Is it ok that we cannot delete object in the second case?
This whole tests succeeded when I ran it today on master branch.
We have reproduced the issue -- with
REP 4
it is a primary placement that fails, not additional broadcast.In this case this is an expected behaviour -- tombstones are no worse than any other object.
With
REP 3
everything works as expected cc @dkirillovAgree that this is expected behaviour, but there is definitely room for improvements in the protocol. Should we keep discussion here or go to API repository?
Also, as far as I remember, tombstones are 'broadcasted' to all container nodes regardless of
REP
policy. This is a bit different object placement compare to any other regular objects. Maybe it's okay to return successful status code?Tombstones are first put as simple objects and then broadcasted as "best-effort". The former PUT fails in the described scenario.
If we prepare tombstone on the client side and then put it we can use
copies_number
.I agree, there is room for improvement -- may be we can add copies-number to DELETE (or use X-Headers for this)?
I created TrueCloudLab/frostfs-api#33 and TrueCloudLab/frostfs-api#34 as possible protocol improvements. For now it is closed, because described node behaviour follows protocol.