Repository navigation
lib/db, lib/model: Allow needing invalid files (fixes #7474) - #7476
Merged
Merged
Conversation
calmh
approved these changes
Mar 15, 2021
Member
I have tested the commit, but I did have to reset the databases in order for the errors to go away. Was is supposed to fix itself after replacing the binary? |
Member
Author
|
Yes, should have fixed itself. On which device did you test it? You would have to do it on the device shown as out of sync, i.e. device C in your scenario in #7474. |
Member
|
I had replaced the binary on all three. However, I have also now tried to reproduce the behaviour again with a completely new folder, and it did fix itself, so I would call this solved 🙂. |
imsodin
added a commit
to imsodin/syncthing
that referenced
this pull request
Apr 23, 2021
calmh
pushed a commit
that referenced
this pull request
Apr 26, 2021
calmh
pushed a commit
to calmh/syncthing
that referenced
this pull request
Apr 26, 2021
calmh
added a commit
that referenced
this pull request
Apr 27, 2021
imsodin
added a commit
to imsodin/syncthing
that referenced
this pull request
Apr 29, 2021
imsodin
added a commit
to imsodin/syncthing
that referenced
this pull request
Apr 29, 2021
imsodin
added a commit
to imsodin/syncthing
that referenced
this pull request
Apr 29, 2021
imsodin
added a commit
to imsodin/syncthing
that referenced
this pull request
Apr 29, 2021
greatroar
pushed a commit
to greatroar/syncthing
that referenced
this pull request
May 8, 2021
tomasz1986
pushed a commit
to tomasz1986/syncthing
that referenced
this pull request
May 21, 2021
…g#7476) (syncthing#7609) Signed-off-by: Tomasz Wilczyński <[email protected]>
tomasz1986
pushed a commit
to tomasz1986/syncthing
that referenced
this pull request
Aug 18, 2021
…syncthing#7476) Signed-off-by: Tomasz Wilczyński <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Scenario (#7474 (comment)):
I adjusted
Needto consider invalid files needed, and added a shortcut to the puller to send invalid files directly to the db. If at some point we do create a local file, that "trumps" the invalid file as usual (bumps the version of the invalid file, uninvalidates it, ...).I also added a db migration to trigger a repair, otherwise the changes don't take effect.
Testing
Unit test checking that we do pull and send back an invalid file info.
Needed to add some machinery to the fake connection to correctly send invalid files.