Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Race condition causes duplicate comments for same webmention source + target #474

Open
snarfed opened this issue May 20, 2024 · 2 comments

Comments

@snarfed
Copy link
Contributor

snarfed commented May 20, 2024

Hi @pfefferle, @dshanske! I got an interesting one just now: Bridgy Fed sent the same webmention (with same source and target) twice at almost the exact same time, within just ~10ms or so, and the plugin created two duplicate comments for it:

image

Looks like a race condition? I'm guessing you may want to add a lock or database transaction to prevent this.

@snarfed
Copy link
Contributor Author

snarfed commented May 20, 2024

@snarfed
Copy link
Contributor Author

snarfed commented Dec 1, 2024

Still seeing this! Another example: https://snarfed.org/2024-12-01_54199#comments

pfefferle added a commit that referenced this issue Dec 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant