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

[TLS] transaction fails when going from strict to control

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.1.0
    • 7.1.0
    • query
    • 7.1.0-1279
    • Untriaged
    • 1
    • Unknown

    Description

      To repro:

      • setup 2 node cluster
      • load travel-sample
      • disable auto-failover
      • enable N2N encryption: /opt/couchbase/bin/couchbase-cli node-to-node-encryption -c http://localhost:8091 -u Administrator -p password --enable
      • enable strict mode:  /opt/couchbase/bin/couchbase-cli setting-security -c http://localhost:8091 -u Administrator -p password --set --cluster-encryption-level strict
      • run query in transaction (should work) e.g. select airportname from `travel-sample`.inventory.airport where city = 'Lyon';
      • enable control mode: /opt/couchbase/bin/couchbase-cli setting-security -c http://localhost:8091 -u Administrator -p password --set --cluster-encryption-level control
      • rerun query in transaction ... will fail

      cbq> select airportname from `travel-sample`.inventory.airport where city = 'Lyon';
      {
          "requestID": "f1b598b7-5d6e-4399-bcf0-b95653eafc66",
          "signature": {
              "airportname": "json"
          },
          "results": [
          ],
          "errors": [
              {
                  "cause": {
                      "cause": {
                          "-": {
                              "InnerError": {
                                  "InnerError": {},
                                  "Message": "unambiguous timeout"
                              }
                          },
                          "i": "0x0",
                          "s": "LookupIn",
                          "t": 2500815
                      },
                      "raise": "failed",
                      "retry": true,
                      "rollback": true
                  },
                  "code": 17017,
                  "msg": "Transaction fetch error"
              }
          ],
          "status": "errors",
          "metrics": {
              "elapsedTime": "2.56480491s",
              "executionTime": "2.564635168s",
              "resultCount": 0,
              "resultSize": 0,
              "serviceLoad": 1,
              "transactionElapsedTime": "5.921092717s",
              "transactionRemainingTime": "1m54.078777666s",
              "errorCount": 1
          }
      }
      
      

      See attached logs.

      Attachments

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

        Activity

          Works on 7.1.0-1489

          pierre.regazzoni Pierre Regazzoni added a comment - Works on 7.1.0-1489

          Can you try with latest build

          Sitaram.Vemulapalli Sitaram Vemulapalli added a comment - Can you try with latest build

          I also confirmed I don't see this issue on 7.0.2-6669.

          pierre.regazzoni Pierre Regazzoni added a comment - I also confirmed I don't see this issue on 7.0.2-6669.
          Sitaram.Vemulapalli Sitaram Vemulapalli added a comment - - edited

          Not sure what changed. As part of MB-48068 it has been tested and working fine.
          One can enable debug (UI Advanced query settings) and See why transaction fetch is timeout in query.log

          Sitaram.Vemulapalli Sitaram Vemulapalli added a comment - - edited Not sure what changed. As part of MB-48068 it has been tested and working fine. One can enable debug (UI Advanced query settings) and See why transaction fetch is timeout in query.log

          People

            pierre.regazzoni Pierre Regazzoni
            pierre.regazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty