Merge pull request #34308 from backstage/freben/cached-service-cleanup

Fix cache eviction race in CachedUserInfoService
This commit is contained in:
Ben Lambert
2026-05-19 18:37:27 +02:00
committed by GitHub
3 changed files with 12 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Fixed a race condition in `CachedUserInfoService` where a failed request could incorrectly evict a newer cache entry for the same token. The error handler now verifies the map entry is still the same promise before deleting it.