Giter Club home page Giter Club logo

Comments (13)

snej avatar snej commented on June 6, 2024

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.

snej avatar snej commented on June 6, 2024

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.

snej avatar snej commented on June 6, 2024

This is a sync gateway issue -- should be fixed with commit couchbase/sync_gateway@8531cc9.

from couchbase-lite-ios.

Framnk avatar Framnk commented on June 6, 2024

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.

snej avatar snej commented on June 6, 2024

The timeout error is weird.
What back-end database are you using — Walrus or Couchbase Server?

from couchbase-lite-ios.

Framnk avatar Framnk commented on June 6, 2024

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.

snej avatar snej commented on June 6, 2024

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.

PaulCapestany avatar PaulCapestany commented on June 6, 2024

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.

PaulCapestany avatar PaulCapestany commented on June 6, 2024

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.

jchris avatar jchris commented on June 6, 2024

TODO: add to the LiteServ functional tests

from couchbase-lite-ios.

tahmmee avatar tahmmee commented on June 6, 2024

Verified fixed in functional test c22d3fef6319b57db9bb91137be50674a35a4079
deletes propagate for between clients and gateway and also local->local

from couchbase-lite-ios.

PaulCapestany avatar PaulCapestany commented on June 6, 2024

@tahmmee c22d3fe is a 404—just a head's up

from couchbase-lite-ios.

tahmmee avatar tahmmee commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.