mcbp_session during connect stream not closed before connecting to next endpoint

Description

During DNS resolve, if multiple endpoints are returned and the first fails to connect, the second will fail with 22 (Invalid argument) because the stream is still open

[2022-02-14 02:21:03.571] [99042,24954042] [debug] 1ms, [820f6a59-22ce-4394-97ab-7c3b34daab77/b2e445d8-604b-439d-11ae-fee6b5861019/plain/-] <localhost:60014> attempt to establish MCBP connection [2022-02-14 02:21:03.573] [99042,24954101] [debug] 2ms, [820f6a59-22ce-4394-97ab-7c3b34daab77/b2e445d8-604b-439d-11ae-fee6b5861019/plain/-] <localhost:60014> connecting to ::1:60014 [2022-02-14 02:21:03.574] [99042,24954101] [warning] 0ms, [820f6a59-22ce-4394-97ab-7c3b34daab77/b2e445d8-604b-439d-11ae-fee6b5861019/plain/-] <localhost:60014> unable to connect to ::1:60014: 61 (Connection refused), check server ports and cluster encryption setting. is_open=true [2022-02-14 02:21:03.574] [99042,24954101] [debug] 0ms, [820f6a59-22ce-4394-97ab-7c3b34daab77/b2e445d8-604b-439d-11ae-fee6b5861019/plain/-] <localhost:60014> connecting to 127.0.0.1:60014 [2022-02-14 02:21:03.574] [99042,24954101] [warning] 0ms, [820f6a59-22ce-4394-97ab-7c3b34daab77/b2e445d8-604b-439d-11ae-fee6b5861019/plain/-] <localhost:60014> unable to connect to 127.0.0.1:60014: 22 (Invalid argument). is_open=true [2022-02-14 02:21:03.574] [99042,24954101] [error] 0ms, [820f6a59-22ce-4394-97ab-7c3b34daab77/b2e445d8-604b-439d-11ae-fee6b5861019/plain/-] <localhost:60014> no more endpoints left to connect, will try another address

Environment

None

Release Notes Description

None

Activity

Show:

Jake Rawsthorne June 27, 2022 at 1:35 PM

Need to apply the same fix for http_session

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Labels

Affects versions

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created February 14, 2022 at 10:42 AM
Updated June 27, 2022 at 1:35 PM
Resolved February 15, 2022 at 11:52 AM
Instabug