Open wwwillchen opened 2 weeks ago
Hmm, I wonder if it's a concurrency issue. The loop in question does not modify anything. But if clear_stale_sessions is called by multiple requests around the same time, I imagine it could be possible for a race condition. I'll look into it more later.
Yeah, that's what I was thinking to. If you do --repeat-each=10 for the whole test suite, you might be able to repro this issue.
Test failure: https://github.com/google/mesop/actions/runs/10606188926/job/29396449678?pr=874
Looks like there's some kind of issue/bug with state sessions:
Stack trace: