Skip to content

fix(model): loop-break regression while block copying in puller - #10069

Merged
calmh merged 1 commit into
v2from
v2-copier-breaknested
Apr 24, 2025
Merged

calmh merged 1 commit into
v2from
v2-copier-breaknested

Conversation

@imsodin

@imsodin imsodin commented Apr 23, 2025 •

Copy link
Copy Markdown
Member

Possibly/likely the man cause for the issues tomasz is reporting in the forum:
First relevant reply: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/204 Reply with profiles I used to troubleshoot: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/208

I don't particularly like my fix - to me this asks for better names (too many "blocks") or probably refactors. I also found at least one more bug (fd not closed at end of loop, only end of entire function), but haven't yet had the time/energy to find a (nice) solution. Likely that's going to benefit from refactoring parts of this into a separate function too.

Regression introduced when splitting the DB (second nested loop added):

cf1cf85

Possibly/likely the man cause for the issues tomasz is reporting in the
forum:
First relevant reply: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/204
Reply with profiles I used to troubleshoot: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/208

I don't particularly like my fix - to me this asks for better names (too
many "blocks") or probably refactors. I also found at least one more
bug (fd not closed at end of loop, only end of entire function), but
haven't yet had the time/energy to find a (nice) solution. Likely that's
going to benefit from refactoring parts of this into a separate function
too.

Regression introduced when splitting the DB (second nested loop added):

cf1cf85

@calmh calmh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice I thought I'd caught these

@calmh calmh changed the title Fix loop-break regression while block copying in puller fix(model): loop-break regression while block copying in puller Apr 24, 2025
@calmh
calmh merged commit be00236 into v2 Apr 24, 2025
@calmh
calmh deleted the v2-copier-breaknested branch April 24, 2025 01:29
calmh added a commit to calmh/syncthing that referenced this pull request Apr 24, 2025
* v2:
  fix(model): loop-break regression while block copying in puller (syncthing#10069)
  feat(config): add option for audit file (fixes syncthing#9481) (syncthing#10066)
  chore(api): log X-Forwarded-For (syncthing#10035)
  chore(syncthing): remove "default" folder concept (syncthing#10068)
  chore(gui): update dependency copyrights, add script for periodic maintenance (syncthing#10067)
  chore(gui, man, authors): update docs, translations, and contributors
  chore(syncthing): remove support for TLS 1.2 sync connections (syncthing#10064)
  fix(osutil): give threads same I/O priority on Linux (syncthing#10063)
  chore(stun): switch lookup warning to debug level
  chore(gui, man, authors): update docs, translations, and contributors
@calmh calmh added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label May 29, 2025
@calmh calmh added this to the v2.0.0 milestone Aug 12, 2025
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jul 1, 2026
@syncthing syncthing locked and limited conversation to collaborators Jul 1, 2026

This branch was previously deployed

1 inactive deployment
docker — 2df7e462 Deployed Apr 23, 2025 by imsodin
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug A problem with current functionality, as opposed to missing functionality (enhancement) 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.

3 participants