add "lock_retries" option to avoid infinite loop on concurrent CETS join - #64
Closed
ryblovAV wants to merge 1 commit into
Closed
add "lock_retries" option to avoid infinite loop on concurrent CETS join#64ryblovAV wants to merge 1 commit into
ryblovAV wants to merge 1 commit into
Conversation
ryblovAV
force-pushed
the
FACEIT-CETS-JOIN-RETRY
branch
from
August 5, 2026 09:35
f90b079 to
f091ccd
Compare
ryblovAV
force-pushed
the
FACEIT-CETS-JOIN-RETRY
branch
from
August 5, 2026 10:08
f091ccd to
b7d508e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
==========================================
+ Coverage 98.46% 98.58% +0.11%
==========================================
Files 11 11
Lines 846 846
==========================================
+ Hits 833 834 +1
+ Misses 13 12 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
chrzaszcz
added a commit
that referenced
this pull request
Aug 6, 2026
The CETS join process takes a global lock on all cluster nodes. When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails. As a result, global:trans returns aborted, and join_loop retries immediately, creating a long living retry loop Original PR: #64 I made the tests less verbose and more configurable. I also increased the likelihood of failure by increasing the number of nodes and decreasing the total test timeout. Now it is reliably failing before the fix, and succeeding after it.
chrzaszcz
added a commit
that referenced
this pull request
Aug 6, 2026
The CETS join process takes a global lock on all cluster nodes. When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails. As a result, global:trans returns aborted, and join_loop retries immediately, creating a long living retry loop Original PR: #64 I made the tests less verbose and more configurable. I also increased the likelihood of failure by increasing the number of nodes and decreasing the total test timeout. Now it is reliably failing before the fix, and succeeding after it.
chrzaszcz
added a commit
that referenced
this pull request
Aug 6, 2026
The CETS join process takes a global lock on all cluster nodes. When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails. As a result, global:trans returns aborted, and join_loop retries immediately, creating a long living retry loop Original PR: #64 I made the tests less verbose and more configurable. I also increased the likelihood of failure by increasing the number of nodes and decreasing the total test timeout. Now it is reliably failing before the fix, and succeeding after it.
chrzaszcz
added a commit
that referenced
this pull request
Aug 6, 2026
The CETS join process takes a global lock on all cluster nodes. When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails. As a result, global:trans returns aborted, and join_loop retries immediately, creating a long living retry loop Original PR: #64 I made the tests less verbose and more configurable. I also increased the likelihood of failure by increasing the number of nodes and decreasing the total test timeout. Now it is reliably failing before the fix, and succeeding after it.
chrzaszcz
added a commit
that referenced
this pull request
Aug 6, 2026
The CETS join process takes a global lock on all cluster nodes. When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails. As a result, global:trans returns aborted, and join_loop retries immediately, creating a long living retry loop Original PR: #64 I made the tests less verbose and more configurable. I also increased the likelihood of failure by increasing the number of nodes and decreasing the total test timeout. Now it is reliably failing before the fix, and succeeding after it.
chrzaszcz
added a commit
that referenced
this pull request
Aug 6, 2026
The CETS join process takes a global lock on all cluster nodes. When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails. As a result, global:trans returns aborted, and join_loop retries immediately, creating a long living retry loop Original PR: #64 I made the tests less verbose and more configurable. I also increased the likelihood of failure by increasing the number of nodes and decreasing the total test timeout. Now it is reliably failing before the fix, and succeeding after it.
Member
|
Superseded with #65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CETS join process takes a global lock on all cluster nodes.
When multiple nodes attempt to join simultaneously, acquiring the lock frequently fails.
As a result,
global:transreturnsaborted, andjoin_loopretries immediately, creating a long living retry loopAdd a
lock_retriesjoin option.With
Retries > 0,global:set_lockexecutes randomized exponential backoff (via therandom_sleep/1function) between lock attempts, drastically reducing contention when many nodes join at once.