Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1679

Lock related errors not setting Exception and Status fields correctly in the result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.5.12
    • None
    • library
    • None
    • 1

    Description

      When using Couchbase Server 5.x, and you get a lock related error, the Status filed is set of "Failure" (-3) and the Exception field is set to null.

      You can reproduce with the following code:

      var cluster = new Cluster(new ClientConfiguration
      {
          Servers = new List<Uri> { new Uri("http://10.111.175.101") }
      });
       
      var authenticator = new PasswordAuthenticator("user", "password");
      cluster.Authenticate(authenticator);
      var bucket = cluster.OpenBucket("test");
       
      dynamic attempt1 = bucket.GetAndLock<dynamic>("12345", TimeSpan.FromSeconds(10));
      dynamic attempt2 = bucket.GetAndLock<dynamic>("12345", TimeSpan.FromSeconds(10));
      

      attempt2 above should be the "bad" result.

      Attachments

        Issue Links

          For Gerrit Dashboard: NCBC-1679
          # Subject Branch Project Status CR V

          Activity

            People

              jmorris Jeff Morris
              david.saadeh David Saadeh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  PagerDuty