mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
client: object PUT stream handler misses unexpected OK response #245
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Dec 5, 2024).
objects are put via gRPC client stream. Normally the server should respond with OK only after the stream is finished by the client (via Close)
Current Behavior
Writemisses the unexpected OK response, and if user callsWriteagain, he receives following error:This is a gRPC error when trying to send a message to a closed stream (what shouldn't happen)
Expected Behavior
when stream finish encountered, and the code is OK, return
Possible Solution
nspcc-dev/neofs-sdk-go@335d9fe90f/client/object_put.go (L204)x.errwill be nil here. If so, return a stream violation errorContext
ClienttestingRegression
No
Your Environment
335d9fe90f24494944c2888ef385f06f5f81dcfc