SearchV2 fails to process the request in timely manner without requested attributes #1409

Closed
opened 2025-12-28 17:22:54 +00:00 by sami · 1 comment
Owner

Originally created by @roman-khimov on GitHub (Apr 26, 2025).

Originally assigned to: @cthulhu-rider on GitHub.

Expected Behavior

~same speed of request processing with and without requested attributes. Especially if only the primary one is needed.

Current Behavior

$ time ./bin/neofs-cli object searchv2 --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f "Block EQ 1000000" --attributes "Block"
Found 1 objects.
H2AJB2YZ36pYdpRyWucBfXsERCGXLbkhrPWzMMCWugMw
        Block: 1000000

real    0m0,945s
user    0m0,034s
sys     0m0,018s
$ time ./bin/neofs-cli object searchv2 --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f "Block EQ 1000000"
rpc error: rpc failure: rpc error: code = DeadlineExceeded desc = context deadline exceeded

real    0m15,014s
user    0m0,029s
sys     0m0,030s

Possible Solution

Fix something.

Context

Likely to affect https://github.com/nspcc-dev/neo-go/issues/3825.

Regression

Kinda, if you're to compare that to the old search:

$ time ./bin/neofs-cli object search --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f "Block EQ 1000000"
Found 1 objects.
H2AJB2YZ36pYdpRyWucBfXsERCGXLbkhrPWzMMCWugMw

real    0m1,000s
user    0m0,033s
sys     0m0,026s

Your Environment

  • Version used: 0.45.2
  • Server setup and configuration:
  • Operating System and version (uname -a):
Originally created by @roman-khimov on GitHub (Apr 26, 2025). Originally assigned to: @cthulhu-rider on GitHub. ## Expected Behavior ~same speed of request processing with and without requested attributes. Especially if only the primary one is needed. ## Current Behavior ``` $ time ./bin/neofs-cli object searchv2 --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f "Block EQ 1000000" --attributes "Block" Found 1 objects. H2AJB2YZ36pYdpRyWucBfXsERCGXLbkhrPWzMMCWugMw Block: 1000000 real 0m0,945s user 0m0,034s sys 0m0,018s $ time ./bin/neofs-cli object searchv2 --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f "Block EQ 1000000" rpc error: rpc failure: rpc error: code = DeadlineExceeded desc = context deadline exceeded real 0m15,014s user 0m0,029s sys 0m0,030s ``` ## Possible Solution Fix something. ## Context Likely to affect https://github.com/nspcc-dev/neo-go/issues/3825. ## Regression Kinda, if you're to compare that to the old search: ``` $ time ./bin/neofs-cli object search --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f "Block EQ 1000000" Found 1 objects. H2AJB2YZ36pYdpRyWucBfXsERCGXLbkhrPWzMMCWugMw real 0m1,000s user 0m0,033s sys 0m0,026s ``` ## Your Environment * Version used: 0.45.2 * Server setup and configuration: * Operating System and version (`uname -a`):
sami 2025-12-28 17:22:54 +00:00
Author
Owner

@cthulhu-rider commented on GitHub (Apr 28, 2025):

did not reproduce in DevEnv. The op goes slow, but completes

$ time neofs-cli object searchv2 --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f 'Block EQ 1000000' --timeout 1h
Enter password > 
Found 1 objects.
H2AJB2YZ36pYdpRyWucBfXsERCGXLbkhrPWzMMCWugMw

real	4m47.985s

most likely related to big number of objects in this container

@cthulhu-rider commented on GitHub (Apr 28, 2025): did not reproduce in DevEnv. The op goes slow, but completes ``` $ time neofs-cli object searchv2 --cid 3RCdP3ZubyKyo8qFeo7EJPryidTZaGCMdUjqFJaaEKBV -r grpcs://st4.storage.fs.neo.org:8082 -f 'Block EQ 1000000' --timeout 1h Enter password > Found 1 objects. H2AJB2YZ36pYdpRyWucBfXsERCGXLbkhrPWzMMCWugMw real 4m47.985s ``` most likely related to big number of objects in this container
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-node#1409
No description provided.