Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-134

mcbp_session during connect stream not closed before connecting to next endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • 1.0.0-beta
    • None
    • 1

    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
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            jake.rawsthorne Jake Rawsthorne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes