Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48970

Unable to establish connection to a non-KV node in Neo

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      Steps :
      1. Create a 2 node cluster using Neo build 7.1.0-1501 (current latest). node1 should have KV service only and node2 should have FTS.
      2. Create a bucket - bucket1.
      3. Using Python SDK client, connect to the cluster on the node having KV service - node1. This works fine.
      4. Using Python SDK client, connect to the cluster on the node having FTS service - node2. This doesn't work. It throws the following exception -

       <RC=0xC9[LCB_ERR_TIMEOUT (201)], There was a problem while trying to send/receive your request over the network. This may be a result of a bad network or a misconfigured client or server, C Source=(src/bucket.c,1209)>
      

      The same steps work fine with Couchbase server version 7.0.2-6703. So this is a regression. Other QE members report the same error while connecting to Analytics, N1QL nodes, and also using Couchbase Python client version 3.2.2

      Couchbase Python client version = 3.1.1
      libcouchbase version = 3.2.2

      code that doesnt work

      self.cb_admin = Admin(self.username, self.password, self.node_addr, self.node_port)
      self.cb_coll_mgr = CollectionManager(self.cb_admin, self.bucket_name)
      timeout_options = ClusterTimeoutOptions(kv_timeout=timedelta(seconds=120), query_timeout=timedelta(seconds=10))
      options = ClusterOptions(PasswordAuthenticator(self.username, self.password), timeout_options=timeout_options)
      self.cluster = Cluster('couchbase://{0}'.format(self.node_addr),
                                     options)
      self.cb = self.cluster.bucket(self.bucket_name)
      

      Attachments

        1. log with 1363.txt
          13 kB
        2. log with 1364.txt
          14 kB
        3. mb48970.py
          1 kB
        4. output_lcb_master_7.1.0-1056.txt
          8 kB
        5. output_lcb_master_7.1.0-1472.txt
          8 kB

        Issue Links

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

          Activity

            I confirm reproduction on 7.1.0-1472. I'm working on the fix

            avsej Sergey Avseyev added a comment - I confirm reproduction on 7.1.0-1472. I'm working on the fix

            Oh, it seems like the bug is not ours. It is the server has changed protocol without warning.

            https://github.com/couchbase/ns_server/commit/ff1acfaeba5f2f7da27484ec80925f883c33370a

            We expect \n\n\n\n as separator, but they removed it without consulting with SDK team.

            avsej Sergey Avseyev added a comment - Oh, it seems like the bug is not ours. It is the server has changed protocol without warning. https://github.com/couchbase/ns_server/commit/ff1acfaeba5f2f7da27484ec80925f883c33370a We expect \n\n\n\n as separator, but they removed it without consulting with SDK team.

            The breaking change was introduced in the patch associated with MB-46215

            avsej Sergey Avseyev added a comment - The breaking change was introduced in the patch associated with MB-46215

            Attached a simple python script that readily reproduces the issue on builds >= 7.1.0-1364 mb48970.py

            mihir.kamdar Mihir Kamdar (Inactive) added a comment - Attached a simple python script that readily reproduces the issue on builds >= 7.1.0-1364 mb48970.py

            Build couchbase-server-7.1.0-1522 contains ns_server commit 0c3d0db with commit message:
            MB-48970: Revert streaming separator to 4 new lines

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1522 contains ns_server commit 0c3d0db with commit message: MB-48970 : Revert streaming separator to 4 new lines

            People

              Abhijeeth.Nuthan Abhijeeth Nuthan
              mihir.kamdar Mihir Kamdar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty