[PR #1537] [MERGED] Get cache from external cache when refresh fails #13903

Closed
opened 2026-08-05 02:09:10 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1537
Author: @mlsmaycon
Created: 2/6/2024
Status: Merged
Merged: 2/7/2024
Merged by: @mlsmaycon

Base: mainHead: fix/get-cache-from-external-when-refresh-fails


📝 Commits (3)

  • 90c5968 Get cache from external cache when refresh fails
  • c8a5bd6 use info level
  • 8a66031 remove redundant external cache check

📊 Changes

2 files changed (+15 additions, -12 deletions)

View changed files

📝 management/server/account.go (+15 -0)
📝 management/server/user.go (+0 -12)

📄 Description

Describe your changes

In some cases, when the refresh cache fails, we should try to get the cache from the external cache obj.

This may happen if the IDP is not responsive between storing metadata and refreshing the cache

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/1537 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 2/6/2024 **Status:** ✅ Merged **Merged:** 2/7/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/get-cache-from-external-when-refresh-fails` --- ### 📝 Commits (3) - [`90c5968`](https://github.com/netbirdio/netbird/commit/90c596894d8c1f9bb732f6dba587b1982095ab5f) Get cache from external cache when refresh fails - [`c8a5bd6`](https://github.com/netbirdio/netbird/commit/c8a5bd64645b1d7ae24652d243da30fa209eb668) use info level - [`8a66031`](https://github.com/netbirdio/netbird/commit/8a660310b3b4898fcebfe9914959aa453cbcc974) remove redundant external cache check ### 📊 Changes **2 files changed** (+15 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+15 -0) 📝 `management/server/user.go` (+0 -12) </details> ### 📄 Description ## Describe your changes In some cases, when the refresh cache fails, we should try to get the cache from the external cache obj. This may happen if the IDP is not responsive between storing metadata and refreshing the cache ## 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 02:09:10 -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#13903