Skip to content

lib: Revert needing invalid files (fixes #7608, ref #7476) - #7609

Merged
calmh merged 1 commit into
syncthing:mainfrom
imsodin:lib/revert-need-invalid
Apr 29, 2021
Merged

calmh merged 1 commit into
syncthing:mainfrom
imsodin:lib/revert-need-invalid

Conversation

@imsodin

@imsodin imsodin commented Apr 29, 2021

Copy link
Copy Markdown
Member

Unfortunately the solution for #7474 implemented in #7476 created a new, more severe problem: Files that should be synced, aren't: #7608. I couldn't come up with a way to fix #7474 without introducing this regression that doesn't add a lot of complexity. Thus I reverted that change and thus re-introduce #7474. As that is only a "presentation issue" that's clearly the more desirable issue to have.

Most of the diff here is due to the migration needed to resolve issues for users already affected by #7608. As I needed a file info batch in this migration, I moved the fileInfoBatch from model to db.

Testing

I introduced a new unit test reproducing #7608 and removed the test for #7474.

@imsodin
imsodin force-pushed the lib/revert-need-invalid branch 2 times, most recently from 6e066b6 to effc5c8 Compare April 29, 2021 08:44
@imsodin
imsodin force-pushed the lib/revert-need-invalid branch from effc5c8 to 7449c59 Compare April 29, 2021 08:51
@tomasz1986

Copy link
Copy Markdown
Member

That is unfortunate…

Is #7474 going to be reopened then? Maybe something or someone will come up later and make it possible to fix it. I can live with the cosmetic issue, but at the same time it makes the affected devices appear permanently out of sync, which is less than ideal…

@calmh
calmh merged commit dd39556 into syncthing:main Apr 29, 2021
@imsodin
imsodin deleted the lib/revert-need-invalid branch April 29, 2021 20:31
@calmh calmh added this to the v1.17.0 milestone May 11, 2021
tomasz1986 pushed a commit to tomasz1986/syncthing that referenced this pull request May 21, 2021
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out of sync calculation for remote devices becomes odd in three-device setup with middle one ignoring files

3 participants