storage node: Drain internal error's channel #878

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/shutdown_panic into master 2023-12-19 16:38:06 +00:00

1 commit

Author SHA1 Message Date
484836b9f9 [#878] node: Drain internal error's channel
All checks were successful
DCO action / DCO (pull_request) Successful in 3m33s
Vulncheck / Vulncheck (pull_request) Successful in 4m24s
Tests and linters / Staticcheck (pull_request) Successful in 7m6s
Build / Build Components (1.21) (pull_request) Successful in 8m5s
Build / Build Components (1.20) (pull_request) Successful in 8m12s
Tests and linters / Lint (pull_request) Successful in 12m2s
Tests and linters / Tests (1.20) (pull_request) Successful in 15m5s
Tests and linters / Tests (1.21) (pull_request) Successful in 15m43s
Tests and linters / Tests with -race (pull_request) Successful in 16m27s
This fixes shutdown panic:
1. Some morph connection gets error and passes it to internalErr channel.
2. Storage node starts to shutdow and closes internalErr channel.
3. Other morph connection gets error and tries to pass it to internalErr channel.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2023-12-19 08:24:17 +03:00