Fix CloseAndRecv for patch streamer #1662

Merged
fyrchik merged 1 commit from aarifullin/frostfs-node:fix/patch/close_panic into master 2025-03-05 14:41:48 +00:00
Member
  • A client may open stream to server, not send anything and close the open stream immediatly. This shouldn't cause a panic;
  • Return the error if s.patcher is uninitialized. Uninitialized patcher cannot be closed, this causes a panic.
* A client may open stream to server, not send anything and close the open stream immediatly. This shouldn't cause a panic; * Return the error if `s.patcher` is uninitialized. Uninitialized patcher cannot be closed, this causes a panic.
aarifullin added the
bug
label 2025-03-05 14:14:17 +00:00
aarifullin added 1 commit 2025-03-05 14:14:17 +00:00
[#xx] object: Fix CloseAndRecv for patch streamer
Some checks failed
DCO action / DCO (pull_request) Failing after 27s
Vulncheck / Vulncheck (pull_request) Successful in 1m0s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m22s
Build / Build Components (pull_request) Successful in 1m29s
Tests and linters / Lint (pull_request) Successful in 3m15s
Tests and linters / Staticcheck (pull_request) Successful in 3m10s
Tests and linters / Run gofumpt (pull_request) Successful in 2m58s
Tests and linters / Tests (pull_request) Successful in 3m2s
Tests and linters / Tests with -race (pull_request) Successful in 4m14s
Tests and linters / gopls check (pull_request) Successful in 4m22s
4951e77bfd
* A client may open stream to server, not send anything and close
  the open stream immediatly. This shouldn't cause a panic;
* Return the error if `s.patcher` is uninitialized. Uninitialized
  patcher cannot be closed, this causes a panic.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-03-05 14:14:17 +00:00
aarifullin force-pushed fix/patch/close_panic from 4951e77bfd to 4c8f9580a1 2025-03-05 14:17:25 +00:00 Compare
dstepanov-yadro approved these changes 2025-03-05 14:21:33 +00:00
fyrchik approved these changes 2025-03-05 14:41:32 +00:00
fyrchik merged commit 4c8f9580a1 into master 2025-03-05 14:41:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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: TrueCloudLab/frostfs-node#1662
No description provided.