Skip to content
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

Pinning documents and document deletions #279

Open
threshold862543 opened this issue Mar 2, 2024 · 0 comments
Open

Pinning documents and document deletions #279

threshold862543 opened this issue Mar 2, 2024 · 0 comments

Comments

@threshold862543
Copy link

When you delete something, it doesn't guarantee your peer won't receive it.
Consider three peers, A, B, and C, who have different ACL.
A posts a document D, and D is replicated by peers A and B.
C deletes document D. This deletion operation is broadcast to and A and B, and in the ACL of A it is accepted, but in the ACL of B it is rejected.
Later, C queries the database. Though A deleted the document, B will register the document as not being deleted, as the delete operation failed its ACL. Thus B includes document D in the query results given to C.

It would be nice if you could pin specific documents, as options both with put and del (eg. to ameliorate the above you don't necessarily pin every document you create, but you do pin documents you delete).

It's also possible to implement something similar by using another database of deletions, but having more granular control over a node's replication like this might be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant