Fail SearchV2 requested with unreachable queries #3159
Labels
discussion
Open discussion of some problem
enhancement
Improving existing functionality
I3
Minimal impact
neofs-storage
Storage node application issues
S4
Routine
U4
Nothing urgent
Is your feature request related to a problem? Please describe.
no object can ever match following queries:
N < X && N > X
-likeN < -MaxUint256
,N <= -MaxUint256-POS
,N > MaxUint256
,N >= MaxUint256+POS
1 is 4ever false while 2 is a current protocol limit (false until extensions)
currently,
SearchV2
server responds w/ empty result andOK
to any mentioned query. From one side, this is correct: no object matches these filters. From the other one, when OK recved, client cannot distinguish "not found for now" from "not found and will never be" states. This can hide some app-side bugs and worsen the understanding of sys behaviorDescribe the solution you'd like
respond to unreachable queries with particular status:
Bad Request
to limit overflows400
)Describe alternatives you've considered
keep returning empty
OK
resultAdditional context
The text was updated successfully, but these errors were encountered: