Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-728

[Durability]: Subdoc MutateInOptions with CAS value provided is not cosidered during mutation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.0-alpha.7
    • 2.0.0-alpha.6
    • KV
    • Enterprise Edition 6.5.0 build 4059

    Description

      CAS value provided in MutateInOptions is not considered for durability mutations.

      Always CAS=0x0000000000000000 is seen in wireshark capture as well.

      Build: alpha-6 on 6.5.0-4059

      Code snippet:

      MutateInOptions t_mutateInOptions = this.getMutateInOptions(expiry, expiryTimeUnit, persistTo, replicateTo, timeOut, timeUnit, durabilityLevel);
      if (cas > 0) {
        t_mutateInOptions = t_mutateInOptions.cas(cas);
      }
      final MutateInOptions mutateInOptions = t_mutateInOptions;

      TAF testcase:

      subdoc.subdoc_xattr.SubdocXattrSdkTest:
        test_use_cas_changed_upsert,skip_cleanup=True,GROUP=P0,replicas=0
      

      Attachments

        Activity

          People

            graham.pople Graham Pople
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty