Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8391

Server Compatibility -- Transactions

    XMLWordPrintable

Details

    Description

      Describe any compatibility issues between Sync Gateway and CB server

      1. No end to end transactions.  
      2. Changes made via SDK in a transaction are not guaranteed to be in a Tx when they arrive at CBL
      3. Changes made on CBL within a transaction(inBatch API) will not be propagated as a Tx to server
      4. Writes coming in from non transaction aware clients such as SGW do not play well with transaction
      5. Using transactions in a read only cluster is not an issue . But if using within a mobile RW cluster, then you have to cautious about changes coming from from SGW to documents that are in fight a Tx

       

      Background

      Our current documentation is not very clear on the deployment recommendations when using XDCR with SGW . We have seen an uptick in number of questions related to this topic. 

      Although we specify one-directional XDCR as the option , we are not clear that SGW in target cluster must be read-only mode. Also, the impact of convergence and enabling import-docs on the both clusters (that would effectively be write) .

      Please refer to this customer escalation . Specifically, read comments from Adam Fraser which elaborates on the various cases and recommendations . 

       (CC Amarantha Kulkarni)

      Attachments

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

        Activity

          Ian.bridge Ian Bridge created issue -
          Ian.bridge Ian Bridge made changes -
          Field Original Value New Value
          Link This issue Clones DOC-8390 [ DOC-8390 ]
          Ian.bridge Ian Bridge made changes -
          Description Describe any compatibility issues between Sync Gateway and CB server
           # Eventing service when used with sync gateway cannot be associated with a read-write bucket 
           # Eventing service cannot read or write to same bucket when used with Sync Gateway
           #  https://issues.couchbase.com/browse/DOC-6739 reopen

           

           

          Background

          Our current [documentation|https://docs.couchbase.com/sync-gateway/2.1/running-replications.html] is not very clear on the deployment recommendations when using XDCR with SGW . We have seen an uptick in number of questions related to this topic. 

          Although we specify one-directional XDCR as the option , we are not clear that SGW in target cluster must be read-only mode. Also, the impact of convergence and enabling import-docs on the both clusters (that would effectively be write) .

          Please refer to this customer escalation . Specifically, read comments from [~adamf] which elaborates on the various cases and recommendations . 

           (CC [~amarantha.kulkarni])
          Describe any compatibility issues between Sync Gateway and CB server
           # No end to end transactions.  
           # Changes made via SDK in a transaction are not guaranteed to be in a Tx when they arrive at CBL
           # Changes made on CBL within a transaction(inBatch API) will not be propagated as a Tx to server
           # Writes coming in from non transaction aware clients such as SGW do not play well with transaction
           # Using transactions in a read only cluster is not an issue . But if using within a mobile RW cluster, then you have to cautious about changes coming from from SGW to documents that are in fight a Tx

           

          Background

          Our current [documentation|https://docs.couchbase.com/sync-gateway/2.1/running-replications.html] is not very clear on the deployment recommendations when using XDCR with SGW . We have seen an uptick in number of questions related to this topic. 

          Although we specify one-directional XDCR as the option , we are not clear that SGW in target cluster must be read-only mode. Also, the impact of convergence and enabling import-docs on the both clusters (that would effectively be write) .

          Please refer to this customer escalation . Specifically, read comments from [~adamf] which elaborates on the various cases and recommendations . 

           (CC [~amarantha.kulkarni])
          Ian.bridge Ian Bridge made changes -
          Link This issue is cloned by DOC-8392 [ DOC-8392 ]
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintmd09 mobile mobsprintmd09 mobsprintthis
          Ian.bridge Ian Bridge made changes -
          Link This issue Clones DOC-8390 [ DOC-8390 ]
          Ian.bridge Ian Bridge made changes -
          Link This issue is cloned by DOC-8392 [ DOC-8392 ]
          Ian.bridge Ian Bridge made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ian.bridge Ian Bridge made changes -
          Status In Progress [ 3 ] In Review [ 10107 ]
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintmd09 mobsprintthis mobile mobsprintmd09 mobsprintthis needs-review
          Ian.bridge Ian Bridge made changes -
          Due Date 09/Apr/21 16/Apr/21
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintmd09 mobsprintthis needs-review mobile mobsprintdone mobsprintmd09 mobsprintthis needs-review
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintdone mobsprintmd09 mobsprintthis needs-review mobile mobsprintdone mobsprintmd09 needs-review
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintdone mobsprintmd09 needs-review mobile mobsprintmd09 mobsprintmd10 needs-review
          Ian.bridge Ian Bridge made changes -
          Assignee Ian Bridge [ ian.bridge ] Adam Fraser [ adamf ]
          Ian.bridge Ian Bridge made changes -
          Comment [ [~ben.brooks] / [~adamf]-- could you do a quick check of this new content on SGW and Transactions please?

          It's short and at a high-level, so very quick to do. It is staged here: [https://ibsoln.github.io/stage/stage282/sync-gateway/2.8/server-compatibility-transactions.html]

           

            ]
          Ian.bridge Ian Bridge made changes -
          Assignee Adam Fraser [ adamf ] Ian Bridge [ ian.bridge ]
          Ian.bridge Ian Bridge made changes -
          Assignee Ian Bridge [ ian.bridge ] Adam Fraser [ adamf ]
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintmd09 mobsprintmd10 needs-review mobile mobsprintdone mobsprintmd09 mobsprintmd10 needs-review
          adamf Adam Fraser made changes -
          Assignee Adam Fraser [ adamf ] Ian Bridge [ ian.bridge ]
          Ian.bridge Ian Bridge made changes -
          Labels mobile mobsprintdone mobsprintmd09 mobsprintmd10 needs-review mobile mobsprintdone mobsprintmd09 mobsprintmd10 mobsprintmd11
          Ian.bridge Ian Bridge made changes -
          Status In Review [ 10107 ] In Progress [ 3 ]
          Ian.bridge Ian Bridge made changes -
          Fix Version/s Mobile 3.0 [ 17243 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]

          People

            Ian.bridge Ian Bridge
            Ian.bridge Ian Bridge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty