[PR #2225] [MERGED] Debounce network monitor restarts #16725

Open
opened 2026-08-05 04:06:28 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2225
Author: @lixmal
Created: 7/1/2024
Status: Merged
Merged: 7/2/2024
Merged by: @lixmal

Base: mainHead: fix/prevent-multiple-monitor-restarts


📝 Commits (2)

  • 090cb0e Debounce network monitor restarts
  • 5cfbaeb Merge branch 'main' into fix/prevent-multiple-monitor-restarts

📊 Changes

1 file changed (+30 additions, -6 deletions)

View changed files

📝 client/internal/engine.go (+30 -6)

📄 Description

Describe your changes

This will debounce engine restarts triggered by the network monitor.
It will fix two issues:

  • potential races when (re)creating resources (like the wireguard interface) concurrently
  • constant restarts from ongoing network monitor events, e.g. by flapping interfaces on the system

#2196
#2130

Also see previous PR !2197

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/2225 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 7/1/2024 **Status:** ✅ Merged **Merged:** 7/2/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `fix/prevent-multiple-monitor-restarts` --- ### 📝 Commits (2) - [`090cb0e`](https://github.com/netbirdio/netbird/commit/090cb0e997efae9d17beb8b0ac630ceede98ee28) Debounce network monitor restarts - [`5cfbaeb`](https://github.com/netbirdio/netbird/commit/5cfbaebc00d630e236f32ba4dab33968e351be02) Merge branch 'main' into fix/prevent-multiple-monitor-restarts ### 📊 Changes **1 file changed** (+30 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/engine.go` (+30 -6) </details> ### 📄 Description ## Describe your changes This will debounce engine restarts triggered by the network monitor. It will fix two issues: - potential races when (re)creating resources (like the wireguard interface) concurrently - constant restarts from ongoing network monitor events, e.g. by flapping interfaces on the system ## Issue ticket number and link #2196 #2130 Also see previous PR !2197 ### 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 04:06:28 -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#16725