Skip to content

Fix pending link update race condition#3710

Merged
chrismccord merged 1 commit intomainfrom
sd-pending-diff-race
Mar 7, 2025
Merged

Fix pending link update race condition#3710
chrismccord merged 1 commit intomainfrom
sd-pending-diff-race

Conversation

@SteffenDE
Copy link
Copy Markdown
Collaborator

applyPendingDiffs had a race condition where updates were silently dropped if when trying to apply them there was already a new pending link. We fix this by skipping applyPendingDiffs when a link is still pending.

Fixes #3709.

Bug originally reported by @Gazler:
https://gist.github.com/Gazler/80dac42d3134ff55219853f1cb105e78

applyPendingDiffs had a race condition where updates were silently
dropped if when trying to apply them there was already a new pending
link. We fix this by skipping applyPendingDiffs when a link is still
pending.

Bug originally reported by @Gazler:
https://gist.github.com/Gazler/80dac42d3134ff55219853f1cb105e78
@chrismccord chrismccord merged commit 3369bef into main Mar 7, 2025
16 checks passed
@chrismccord
Copy link
Copy Markdown
Member

❤️❤️❤️🐥🔥

@chrismccord chrismccord deleted the sd-pending-diff-race branch March 7, 2025 13:57
SteffenDE added a commit that referenced this pull request Mar 10, 2025
applyPendingDiffs had a race condition where updates were silently
dropped if when trying to apply them there was already a new pending
link. We fix this by skipping applyPendingDiffs when a link is still
pending.

Bug originally reported by @Gazler:
https://gist.github.com/Gazler/80dac42d3134ff55219853f1cb105e78
SteffenDE added a commit that referenced this pull request Aug 19, 2025
SteffenDE added a commit that referenced this pull request Aug 20, 2025
SteffenDE added a commit that referenced this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Patch race condition

2 participants