-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard-DELETE invalid client records from the server #1801
Comments
This sounds like it could potentially be a The clients sync engine has some code here which tries to read a
Rather than returning an error here, we should catch it and delete the corresponding item from the server. However, I couldn't see a nice existing abstraction for hard-deleting items from the server, and the
@linacambridge what do you think? |
Client records have a ttl, and I believe the spanner server is going to honor them as we expect. While the approach above does seem fine in general, it's a fair bit of work for something that's going to self-destruct anyway - so another option here is probably to just ignore them? |
Hi, I was interested in trying this as a first issue, though see there's a bunch of back and forth above about what the implementation should be like. Did we want to actually just drop the record, or implement something more in-line with what @linacambridge and @rfk suggested? |
I suspect doing the hard delete will be a fair bit of work and in practice has limited value. I think the best thing is to simply ignore such invalid records but otherwise leave them alone. |
Fixed by #4504 |
The clients engine will currently fail the sync if it sees a tombstone in the
clients
collection, or any client record that it can't deserialize. DesktopDELETES
these from the server if it sees them, and we should do the same.┆Issue is synchronized with this Jira Task
┆Epic: Sync Ecosystem (backlog)
The text was updated successfully, but these errors were encountered: