sn: do not respond with epoch in metaheader - #4072
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #4072 +/- ##
==========================================
- Coverage 27.20% 27.20% -0.01%
==========================================
Files 676 676
Lines 46241 46227 -14
==========================================
- Hits 12582 12577 -5
+ Misses 32445 32437 -8
+ Partials 1214 1213 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
roman-khimov
left a comment
There was a problem hiding this comment.
Something to tell about in chlog?
|
PR adds a metaheader to every message. This is how i read the spec currently. But i think @cthulhu-rider thinks differently. Once we decide i will update chlog. |
ec3c5a5 to
6383ead
Compare
|
Attaching version is OK to me now. But if we want to "Must be attached only if server's version is lower than client's one" then it will require more adoption: current code is just a number of helper functions that always attach the version; there is no local request in these funcs. |
cthulhu-rider
left a comment
There was a problem hiding this comment.
Version behavior does not yet correspond to nspcc-dev/neofs-api#404
| Body: body, | ||
| MetaHeader: &protosession.ResponseMetaHeader{ | ||
| Version: version.Current().ProtoMessage(), | ||
| Epoch: s.net.CurrentEpoch(), |
There was a problem hiding this comment.
this makes s.net unused so it's worth to be deparameterized
pls review other cases. Same can be done or at least narrow the dependency interface
|
|
||
| buf[0] = iprotobuf.TagBytes2 | ||
| off := 1 + binary.PutUvarint(buf[1:], uint64(ln)) | ||
|
|
There was a problem hiding this comment.
separately, although it is hardly necessary
There was a problem hiding this comment.
did not understand, what exactly is unnecessary?
6383ead to
fe2a73f
Compare
As i said, i would leave it as is, since it is "optional" in API, so attaching it always is ok to me. But branched returning version. |
fe2a73f to
0cd51c3
Compare
|
Left #4110. Only epoch drop for now. |
Refs nspcc-dev/neofs-api#404. Signed-off-by: Pavel Karpy <carpawell@nspcc.io>
0cd51c3 to
ed4da94
Compare
This affects onlyEC full object with RANGE.This does not affect case implemented in sn/object: Optimize EC GET handling without recovery #3996 (Get service's Prm with
WithECTransport()called). Refs GET does not stream meta headers #4071.