We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7769647 commit cf407e4Copy full SHA for cf407e4
2 files changed
CHANGELOG.md
@@ -46,6 +46,7 @@
46
* [BUGFIX] Query Frontend: Fix query frontend per `user` metrics clean up. #6698
47
* [BUGFIX] Add `__markers__` tenant ID validation. #6761
48
* [BUGFIX] Ring: Fix nil pointer exception when token is shared. #6768
49
+* [BUGFIX] Fix race condition in active user. #6773
50
51
## 1.19.0 2025-02-27
52
pkg/util/active_user.go
@@ -95,8 +95,8 @@ func (m *ActiveUsers) PurgeInactiveUsers(deadline int64) []string {
95
}
96
97
func (m *ActiveUsers) ActiveUsers(deadline int64) []string {
98
- active := make([]string, 0, len(m.timestamps))
99
m.mu.RLock()
+ active := make([]string, 0, len(m.timestamps))
100
defer m.mu.RUnlock()
101
for userID, ts := range m.timestamps {
102
if ts.Load() > deadline {
0 commit comments