Skip to content

Add lock_retries join option (default: 1) - #65

Merged
chrzaszcz merged 1 commit into
mainfrom
lock-retries
Aug 6, 2026
Merged

Add lock_retries join option (default: 1)#65
chrzaszcz merged 1 commit into
mainfrom
lock-retries

Conversation

@chrzaszcz

@chrzaszcz chrzaszcz commented Aug 6, 2026

Copy link
Copy Markdown
Member

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.

Manual checks on my local machine with {repeat_until_any_fail, 10}:

  • Before the fix, the new test either fails or takes extremely long to execute.
  • After the fix, the new test executes quickly and successfully.

CI is less stable though, and it failed once after the fix. Rerun was successful.
I think we could address the stability of tests in a separate PR, as other (unrelated) tests are flaky on my machine as well.

@chrzaszcz
chrzaszcz force-pushed the lock-retries branch 4 times, most recently from 5f24b32 to 54a0445 Compare August 6, 2026 13:28
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.
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.58%. Comparing base (2e7d519) to head (a83f933).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ 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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@telezynski telezynski 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.

Looks good

@chrzaszcz
chrzaszcz merged commit 2902478 into main Aug 6, 2026
21 of 26 checks passed
@chrzaszcz
chrzaszcz deleted the lock-retries branch August 6, 2026 14:10
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.

2 participants