Skip to content

Conversation

@0utplay
Copy link
Member

@0utplay 0utplay commented Jan 31, 2026

Motivation

The service cache of the bridge was not being updated in a thread safe manner. This lead to multiple registration handler calls which at the end results in multiple registrations on velocity / bungeecord.

Modification

Made sure that the register and unregister calls do not race against other incoming updates.

Result

No races between service registration updates

Other context

This issue from discord is probably an example for the described race https://discord.com/channels/325362837184577536/818777626663321671/1467177343729664316

@0utplay 0utplay added this to the 4.0.0-RC17 milestone Jan 31, 2026
@0utplay 0utplay requested a review from derklaro January 31, 2026 16:20
@0utplay 0utplay self-assigned this Jan 31, 2026
@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: module An issue/pull request releated to one of the internal modules labels Jan 31, 2026
@github-actions
Copy link

Test Results

 56 files  ±0   56 suites  ±0   4m 40s ⏱️ -11s
571 tests ±0  571 ✅ ±0  0 💤 ±0  0 ❌ ±0 
938 runs  ±0  938 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 21c1f94. ± Comparison against base commit 15cc106.

@0utplay 0utplay merged commit 347ad6f into nightly Jan 31, 2026
6 checks passed
@0utplay 0utplay deleted the fix/service-register-race branch January 31, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: module An issue/pull request releated to one of the internal modules t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants