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

Client never gives up on files the Server cannot serve #2112

Open
cfm opened this issue Jul 12, 2024 · 1 comment
Open

Client never gives up on files the Server cannot serve #2112

cfm opened this issue Jul 12, 2024 · 1 comment
Labels
bug Something isn't working needs discussion sync sync issues for future epic

Comments

@cfm
Copy link
Member

cfm commented Jul 12, 2024

Description

When the Server has a submission or reply on record that it cannot serve (e.g., because it has been deleted from disk), the Client will keep trying to download it forever.

Steps to Reproduce

  1. Register as a source and submit something.
  2. Delete that source's directory from /var/lib/securedrop/store.
  3. Log into the Client.

Expected Behavior

Sync eventually completes, modulo Tor weather.

Actual Behavior

Since the deleted source's disconnected submission can never be downloaded, sync never completes.

Comments

There's an obvious tension here between "fail when the Server cannot serve" and "keep trying when Tor weather is bad".

We should start by redesigning the overall Client—Server synchronization model. Consider this one problem that redesign will need to solve.

@cfm cfm added bug Something isn't working sync sync issues for future epic needs discussion labels Jul 12, 2024
@cfm
Copy link
Member Author

cfm commented Jul 12, 2024

(In fairness to the Client, the challenge here is for it to reach some form of consistency with, or at least a consistent representation of, a datastore that is inconsistent with itself....)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs discussion sync sync issues for future epic
Projects
None yet
Development

No branches or pull requests

1 participant