Replication failure test #319

Open
opened 2025-12-28 18:15:52 +00:00 by sami · 2 comments
Owner

Originally created by @roman-khimov on GitHub (Nov 15, 2024).

I'm always frustrated when we don't have a test for put failure scenario.

Describe the solution you'd like

REP 1 CBF 4 (or REP 2, but that requires more objects), have nodes failing requests (@carpawell can tell how to do that), push some number (10?) of objects into the node (the probability of hitting the relay-only scenario is 3/4 for REP 1 CBF 4), check that put never succeeds (with 0.43.0 there will be cases where it does).

Additional context

https://github.com/nspcc-dev/neofs-node/pull/3014
https://github.com/nspcc-dev/neofs-node/issues/2948

Originally created by @roman-khimov on GitHub (Nov 15, 2024). ## Is your feature request related to a problem? Please describe. I'm always frustrated when we don't have a test for put failure scenario. ## Describe the solution you'd like `REP 1 CBF 4` (or `REP 2`, but that requires more objects), have nodes failing requests (@carpawell can tell how to do that), push some number (10?) of objects into the node (the probability of hitting the relay-only scenario is 3/4 for `REP 1 CBF 4`), check that put never succeeds (with 0.43.0 there will be cases where it does). ## Additional context https://github.com/nspcc-dev/neofs-node/pull/3014 https://github.com/nspcc-dev/neofs-node/issues/2948
Author
Owner

@carpawell commented on GitHub (Nov 15, 2024):

The test needs two sets of nodes: one that belongs to some container and one that does not (e.g. REP 1 CBF 1). Then there should be some locked object X that has been put and protected from deletion. Then try to delete X but send a request to a node that does not belong to a container, it will have to redirect the request without checking any lock status. In this case we think it will work OK (no error but the object will not be deleted obviously) with 0.43.0 version but will fail (correctly) with the current master.
My suggestion differs a little from the issue's, but I believe it is easier to implement.
If anything goes wrong with the provided scenario (it does not fail when it should or vice versa) tell me, I will recheck.

@carpawell commented on GitHub (Nov 15, 2024): The test needs two sets of nodes: one that belongs to some container and one that does not (e.g. `REP 1 CBF 1`). Then there should be some locked object X that has been put and protected from deletion. Then try to delete X but send a request to a node that does not belong to a container, it will have to redirect the request without checking any lock status. In this case _we think_ it will work OK (no error but the object will not be deleted obviously) with 0.43.0 version but will fail (correctly) with the current master. My suggestion differs a little from the issue's, but I believe it is easier to implement. If anything goes wrong with the provided scenario (it does not fail when it should or vice versa) tell me, I will recheck.
Author
Owner

@roman-khimov commented on GitHub (Nov 28, 2024):

Let's wait for https://github.com/nspcc-dev/neofs-node/issues/952 here.

@roman-khimov commented on GitHub (Nov 28, 2024): Let's wait for https://github.com/nspcc-dev/neofs-node/issues/952 here.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
nspcc-dev/neofs-testcases#319
No description provided.