Comments (13)
I think I know what's going on here — the deleted doc is also not in the channel anymore (because it's missing whatever properties triggered its presence in the channel) so the changes feed contains a channel-removal tombstone. But this tombstone should have the _deleted property so the clients know the doc was deleted as well as being removed.
from couchbase-lite-ios.
No, the deletion does show up in the changes feed. I think the problem may be that when the client tries to get the deleted revision, it gets a 403 error. I may have to alter the access control in the gateway to allow the client to get that tombstone.
from couchbase-lite-ios.
This is a sync gateway issue -- should be fixed with commit couchbase/sync_gateway@8531cc9.
from couchbase-lite-ios.
I'm not sure how to re-open issues on here, but deletes still don't appear to be replicated properly with the latest commits (same steps as in original defect). I test this by creating a new document, verifying it replicates to second device, and then delete that same document and document does not delete from second device.
I am seeing a warning in the sync_gateway output trace:
20:14:12.417272 WARNING: Couldn't interpret error type *errors.errorString, value Timeout -- base.ErrorAsHTTPStatus() at error.go:53
20:14:12.417290 BulkDocs: Doc "C00A9046-81A9-4525-A0C8-B5FBD78192B3" --> Timeout
from couchbase-lite-ios.
The timeout error is weird.
What back-end database are you using — Walrus or Couchbase Server?
from couchbase-lite-ios.
Couchbase Server
On Wed, Jun 19, 2013 at 8:25 PM, Jens Alfke [email protected]:
The timeout error is weird.
What back-end database are you using — Walrus or Couchbase Server?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-19724058
.
from couchbase-lite-ios.
Can you try with Walrus (just change the server URL to simply "walrus:") and try to reproduce? From the error message I suspect the problem is actually that a change notification isn't happening.
We're lacking in this level of high-level functional testing right now, but we are about to start adding some. Pardon the dust.
from couchbase-lite-ios.
I'm also finding that deletes don't get properly picked up by CBL when channels are used. The changes feed picks up the event fine, and other changes like new docs or edits get picked up fine by CBL... it just looks like deletes aren't getting picked up.
The errors look like so ⤵
12:13:06.111 myapp[614:60b] �WARNING*** :
CBL_Puller[http://someuser:*****@myserver.com:4984/myapp]:
Missing revision history in response for {2013-07-12T17:35:41.302Z~SomeDoc #2-8a49cdc30c41adbe41724935181f9c80 DEL}
My config doc looks like so → https://gist.github.com/PaulCapestany/5987049
from couchbase-lite-ios.
I should note that I'm using the latest commits on master for CBL & sync_gateway — I've got logging turned up all the way on both, so let me know if you'd like any more info.
from couchbase-lite-ios.
TODO: add to the LiteServ functional tests
from couchbase-lite-ios.
Verified fixed in functional test c22d3fef6319b57db9bb91137be50674a35a4079
deletes propagate for between clients and gateway and also local->local
from couchbase-lite-ios.
@tahmmee c22d3fe is a 404—just a head's up
from couchbase-lite-ios.
ah sorry, I guess because it's pointing to a different repo https://github.com/couchbaselabs/cblite-tests
from couchbase-lite-ios.
Related Issues (20)
- Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.5 compiler HOT 6
- CouchbaseLite-Swift-Enterprise pod produces warning when compiling with Xcode 13 HOT 8
- Sync crashing CB lite 2.8.0 Ios 15.1 HOT 3
- Compiling issue after upgrading to Xcode 13.2.1 HOT 1
- Fleece crash during document retrieval HOT 12
- `ExpressionProtocol.isNotValued` and `isValued` functions are not available HOT 1
- setMapBlock is executing for all CBLView s instead of specific mentioned CBLView HOT 4
- Add Support for Combine Publishers HOT 1
- Add Linux Support HOT 5
- Add Nulls Ordering support HOT 2
- CouchbaseLite includes UIWebView, can it be changed to WKWebView? HOT 2
- Undefined symbol: _CBLVersion HOT 1
- “CouchbaseLiteSwift.framework” cannot be opened because the developer cannot be verified. HOT 3
- 【iOS Swift】CouchbaseLite Replicator ERROR: {Repl#935} Got LiteCore error: WebSocket error 1006, "connection closed abnormally" HOT 2
- Undefined symbols for CBLReplicatedDocument using CBL ObjC HOT 1
- After downloading the demo, it cannot be run. HOT 2
- Crash on `Query.removeChangeListener(withToken:)` HOT 14
- Swift Package Manager version of CouchbaseLiteSwift 3.1.3 crashes on `MutableDocument()` HOT 4
- `PrivacyInfo.xcprivacy` file is missing `NSPrivacyCollectedDataTypes` key HOT 5
- Couchbase Lite for iOS: Database Integrity Check Failures HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from couchbase-lite-ios.