[PR #2869] [MERGED] [client] Fix race conditions #15746

Closed
opened 2026-08-05 03:08:20 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2869
Author: @lixmal
Created: 11/8/2024
Status: Merged
Merged: 11/11/2024
Merged by: @lixmal

Base: mainHead: fix-races


📝 Commits (5)

  • 4a6261b Fix concurrent map access in status
  • 7cc3122 Fix race when retrieving ctx state error
  • f19022f Fix race when accessing service controller server instance
  • 0a1501e Merge branch 'main' into fix-races
  • e28e5ec Remove code from merge conflict

📊 Changes

4 files changed (+13 additions, -6 deletions)

View changed files

📝 client/cmd/service.go (+6 -4)
📝 client/cmd/service_controller.go (+4 -0)
📝 client/internal/connect.go (+2 -1)
📝 client/internal/peer/status.go (+1 -1)

📄 Description

Describe your changes

  • Fix race when accessing service controller server instance
  • Fix race when retrieving ctx state error
  • Fix concurrent map access in status

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2869 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 11/8/2024 **Status:** ✅ Merged **Merged:** 11/11/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `fix-races` --- ### 📝 Commits (5) - [`4a6261b`](https://github.com/netbirdio/netbird/commit/4a6261b33f25fc2ee2b5876be1f44844311cb5b5) Fix concurrent map access in status - [`7cc3122`](https://github.com/netbirdio/netbird/commit/7cc3122af7257ae6016e878500f2be4eaa821e70) Fix race when retrieving ctx state error - [`f19022f`](https://github.com/netbirdio/netbird/commit/f19022f217d853c7169c192263d4a5b1f0398d59) Fix race when accessing service controller server instance - [`0a1501e`](https://github.com/netbirdio/netbird/commit/0a1501ebff2bc149d036ff57c6f8da44729cff38) Merge branch 'main' into fix-races - [`e28e5ec`](https://github.com/netbirdio/netbird/commit/e28e5ec8e529a3a3f966fe10908766f23a4c1e8c) Remove code from merge conflict ### 📊 Changes **4 files changed** (+13 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/service.go` (+6 -4) 📝 `client/cmd/service_controller.go` (+4 -0) 📝 `client/internal/connect.go` (+2 -1) 📝 `client/internal/peer/status.go` (+1 -1) </details> ### 📄 Description ## Describe your changes - Fix race when accessing service controller server instance - Fix race when retrieving ctx state error - Fix concurrent map access in status ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:08:20 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15746