Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

lockPull: check isActive in the transaction and only by different nodes #2117

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

leszko
Copy link
Contributor

@leszko leszko commented Mar 28, 2024

Change isActive inside the DB transaction, because:

  • As @victorges pointed out in the other PR's comment, better to check it in the transaction
  • We don't want to check it for the same host, otherwise we may have a race condition between setting isActive and locking pull (we want to lockPull only by other nodes)

@leszko leszko requested review from victorges and mjh1 March 28, 2024 13:57
@leszko leszko requested a review from a team as a code owner March 28, 2024 13:57
Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 6:39am

@leszko leszko merged commit d9f20d9 into master Mar 29, 2024
10 checks passed
@leszko leszko deleted the rafal/stream-pull-fix-move-is-active branch March 29, 2024 06:53
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.

None yet

2 participants