-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
I3Minimal impactMinimal impactS2Regular significanceRegular significanceU2Seriously plannedSeriously plannedbugSomething isn't workingSomething isn't working
Milestone
Description
being executed over multi-node container, object SEARCH op can have partial success by design. Current server behavior could be buggy
Steps to reproduce
having NeoFS with at least 2 online storage nodes (N1 and N2), i've done following steps:
- created container
CwithREP 1 CBF 2storage policy requiring to select any 2 storage nodes and store 1 replica of any object on them - created and saved 2 objects
O1->N1,O2->N2 - searched for the
Cobjects - shutdown
N2 - searched again
Expected Behavior
$ neofs-cli -c neofs_cli.yaml object search --cid C --timeout 1m
Enter password >
Found 2 objects.
O1
O2
$ echo $?
0
# node stops
$ neofs-cli -c neofs_cli.yaml object search --cid C --timeout 1m
Enter password >
Found 1 objects.
O1
INCOMPLETE: number of unavailable container nodes = 1
$ echo $?
ERR_CODECurrent Behavior
$ neofs-cli -c neofs_cli.yaml object search --cid C --timeout 1m
Enter password >
Found 2 objects.
O1
O2
$ echo $?
0
# node stops
$ neofs-cli -c neofs_cli.yaml object search --cid C --timeout 1m
Enter password >
Found 1 objects.
O1
$ echo $?
0Possible Solution
respond with specific status non-zero code and number of unavailable container nodes. Respond with 0 OK only when all container nodes responded
Context
i dive into SEARCH server within #2692, but dont think this really matters
Regression
No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
I3Minimal impactMinimal impactS2Regular significanceRegular significanceU2Seriously plannedSeriously plannedbugSomething isn't workingSomething isn't working