Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Mobile 2.8
Description
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 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
Activity
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]) |
Labels | mobile mobsprintmd09 | mobile mobsprintmd09 mobsprintthis |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10107 ] |
Labels | mobile mobsprintmd09 mobsprintthis | mobile mobsprintmd09 mobsprintthis needs-review |
Due Date | 09/Apr/21 | 16/Apr/21 |
Labels | mobile mobsprintmd09 mobsprintthis needs-review | mobile mobsprintdone mobsprintmd09 mobsprintthis needs-review |
Labels | mobile mobsprintdone mobsprintmd09 mobsprintthis needs-review | mobile mobsprintdone mobsprintmd09 needs-review |
Labels | mobile mobsprintdone mobsprintmd09 needs-review | mobile mobsprintmd09 mobsprintmd10 needs-review |
Assignee | Ian Bridge [ ian.bridge ] | Adam Fraser [ adamf ] |
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] ] |
Assignee | Adam Fraser [ adamf ] | Ian Bridge [ ian.bridge ] |
Assignee | Ian Bridge [ ian.bridge ] | Adam Fraser [ adamf ] |
Labels | mobile mobsprintmd09 mobsprintmd10 needs-review | mobile mobsprintdone mobsprintmd09 mobsprintmd10 needs-review |
Assignee | Adam Fraser [ adamf ] | Ian Bridge [ ian.bridge ] |
Labels | mobile mobsprintdone mobsprintmd09 mobsprintmd10 needs-review | mobile mobsprintdone mobsprintmd09 mobsprintmd10 mobsprintmd11 |
Status | In Review [ 10107 ] | In Progress [ 3 ] |
Fix Version/s | Mobile 3.0 [ 17243 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |