WIP: [SUPPORT] Make rpc client stream initialization get cancelled by dial timeout #128

Closed
aarifullin wants to merge 1 commit from aarifullin/frostfs-api-go:fix/client_rpc into support/v2.17
Member
  • c.conn may be already invalidated but the rpc client can't detect this. NewStream may hang trying to open a stream with invalidated connection. Using timer with dialTimeout for NewStream fixes this problem.
* `c.conn` may be already invalidated but the rpc client can't detect this. `NewStream` may hang trying to open a stream with invalidated connection. Using timer with `dialTimeout` for `NewStream` fixes this problem.
aarifullin added the
bug
label 2024-12-13 12:39:45 +00:00
aarifullin added 1 commit 2024-12-13 12:39:46 +00:00
[#301] rpc: Make client stream initialization get cancelled by dial timeout
All checks were successful
Tests and linters / Lint (pull_request) Successful in 2m13s
DCO action / DCO (pull_request) Successful in 4m40s
Tests and linters / Tests (pull_request) Successful in 4m59s
Tests and linters / Tests with -race (pull_request) Successful in 5m21s
8ea650ac76
* `c.conn` may be already invalidated but the rpc client can't detect this.
  `NewStream` may hang trying to open a stream with invalidated connection.
   Using timer with `dialTimeout` for `NewStream` fixes this problem.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
requested reviews from storage-core-committers, storage-core-developers, storage-services-committers, storage-services-developers 2024-12-13 12:39:46 +00:00
aarifullin force-pushed fix/client_rpc from 8ea650ac76 to cdf6f3381c 2024-12-13 12:40:16 +00:00 Compare
acid-ant approved these changes 2024-12-13 12:43:23 +00:00
a-savchuk approved these changes 2024-12-13 13:00:33 +00:00
aarifullin changed title from [SUPPORT] Make rpc client stream initialization get cancelled by dial timeout to WIP: [SUPPORT] Make rpc client stream initialization get cancelled by dial timeout 2024-12-13 13:25:23 +00:00
nzinkevich approved these changes 2024-12-16 11:48:53 +00:00
Author
Member

The PR is not needed for support/v2.17

The PR is not needed for `support/v2.17`
aarifullin closed this pull request 2025-01-09 07:02:17 +00:00
All checks were successful
Tests and linters / Lint (pull_request) Successful in 1m58s
DCO action / DCO (pull_request) Successful in 4m18s
Tests and linters / Tests (pull_request) Successful in 4m52s
Tests and linters / Tests with -race (pull_request) Successful in 4m54s

Pull request closed

Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-committers
No milestone
No project
No assignees
4 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-api-go#128
No description provided.