Skip to content

Optimize buffering of forwarded SEARCH requests - #4116

Open
cthulhu-rider wants to merge 1 commit into
masterfrom
search-buffers
Open

Optimize buffering of forwarded SEARCH requests#4116
cthulhu-rider wants to merge 1 commit into
masterfrom
search-buffers

Conversation

@cthulhu-rider

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 5.20833% with 91 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.21%. Comparing base (2a105d3) to head (5d595c6).

Files with missing lines Patch % Lines
pkg/services/object/search.go 0.00% 50 Missing ⚠️
pkg/services/object/server.go 0.00% 30 Missing ⚠️
pkg/services/object/proto.go 0.00% 5 Missing ⚠️
pkg/services/object/common.go 55.55% 4 Missing ⚠️
pkg/services/object/get.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4116      +/-   ##
==========================================
- Coverage   27.27%   27.21%   -0.07%     
==========================================
  Files         678      678              
  Lines       46282    46352      +70     
==========================================
- Hits        12624    12615       -9     
- Misses      32443    32519      +76     
- Partials     1215     1218       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cthulhu-rider
cthulhu-rider marked this pull request as ready for review August 5, 2026 15:43
Server-side part of nspcc-dev/neofs-sdk-go@c4dda73.

Additionally de-duplicates the request encoding for sending to multiple
nodes.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>

@roman-khimov roman-khimov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to share this code with SDK, it's unmaintainable otherwise.


func (s *Server) writeLocalSearchObjectsRequest(buf []byte, bodyLen int, body *protoobject.SearchV2Request_Body, metaHdrLen int) (int, error) {
// TODO: can be calculated once and reused
originSig, err := neofsecdsa.Signer(s.signer).Sign(nil)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed for API 2.25.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. Lets handle #4118 first then

@cthulhu-rider

Copy link
Copy Markdown
Contributor Author

We need to share this code with SDK, it's unmaintainable otherwise.

this is planned to be done in #4005

@roman-khimov

Copy link
Copy Markdown
Member

Let's solve #4005 first then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants