sergehuber opened a new pull request, #973: URL: https://github.com/apache/unomi/pull/973
## Summary - `testSaveItemExcludedByConcurrentRefresh` used `Thread.isAlive()` as a proxy for “refresh still holds the write lock”. After unlock the refresh thread can still be alive briefly, which flaked under a loaded `release-stage-1` build. - Record an explicit `refreshReleased` flag before the refresh is allowed to leave its critical section, and assert `saveItem()` observed that flag when it returned. - Stressed locally 30× plus a full class run: `ok=30 fail=0`. ## Test plan - [x] `mvn -pl services-common -Dtest=AbstractMultiTypeCachingServiceTest#testSaveItemExcludedByConcurrentRefresh test` × 30 - [x] `mvn -pl services-common -Dtest=AbstractMultiTypeCachingServiceTest test` - [ ] CI on this PR -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
