Skip to content

lib/model: Handle invalid needed items on send-only (ref #7476) - #7596

Merged
calmh merged 1 commit into
syncthing:mainfrom
imsodin:model/pull-invalid-sendonly
Apr 26, 2021
Merged

calmh merged 1 commit into
syncthing:mainfrom
imsodin:model/pull-invalid-sendonly

Conversation

@imsodin

@imsodin imsodin commented Apr 23, 2021

Copy link
Copy Markdown
Member

I noticed a weird failure event on sentry: got deleted file that doesn't exist locally as needed when pulling on send-only
https://sentry.syncthing.net/syncthing/syncthing/issues/10537/?environment=Stable&referrer=alert_email
Its informational only - the condition is not acted upon (the item is just ignored). It will lead to incorrect remote out-of-sync status for the affected device on other devices.

Most likely the cause is #7476, where now invalid files are considered needed. In that PR I only handled that case in send-receive folders, and forgot about the send-only folder having its own pull method.

I also took the opportunity to use fileInfoBatch instead of the "legacy manual way" (no behaviour change).

@imsodin

imsodin commented Apr 26, 2021

Copy link
Copy Markdown
Member Author

I'd like for this to go into the final v1.16.0 RC, as it relates to remote out-of-sync status (aka fixes a cause) and that's basically the main (and almost only) kind of issue we are debugging at the moment in support topics.

@calmh
calmh merged commit 8734fa6 into syncthing:main Apr 26, 2021
calmh pushed a commit to calmh/syncthing that referenced this pull request Apr 26, 2021
@calmh calmh added this to the v1.16.0 milestone Apr 26, 2021
@imsodin
imsodin deleted the model/pull-invalid-sendonly branch April 26, 2021 13:59
calmh added a commit that referenced this pull request Apr 27, 2021
* release:
  lib/model: Handle invalid needed items on send-only (ref #7476) (#7596)
  gui: Handle empty path in validation (ref #7379) (#7595)
  cmd/syncthing: Don't fail early on api setup error (fixes 7558) (#7591)
greatroar pushed a commit to greatroar/syncthing that referenced this pull request May 8, 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.

2 participants