Actions
Bug #22184
openkeep-web IntegrationSuite.TestConcurrentWrites fails intermittently
Status:
In Progress
Priority:
Normal
Assigned To:
Category:
Tests
Target version:
Story points:
-
Release:
Release relationship:
Auto
Files
Updated by Tom Clegg 20 days ago
Clues so far:
- All observed failures are in the n=8 iteration (lots of goroutines operating on 8 different dirs in the same collection) -- no failures when running concurrent goroutines on 1, 2, or 4 different dirs
- All observed failures return 409 for "PUT dirN/fileN"
- The only case where the webdav handler returns 409 for PUT is when the parent directory does not exist
- The test case has a barrier between MKCOL dirN and PUT dirN/fileN
- In the attached log,
PUT i=0/j=0,1,2,3,4,5,6
fail, thenPUT i=0/j=7
succeeds
This seems to indicate that the side effect of MKCOL
is reliably preserved, but calling collectionDir.Sync()
at the end of MKCOL
is not enough to guarantee that the created directory is visible during a future request.
The fact that we only see the problem with n=8
hints that the problem is a race between concurrent collectionDir.Sync()
calls for different directories in the same collection.
Updated by Peter Amstutz 19 days ago
- Target version changed from Development 2024-10-09 sprint to Development 2024-10-23 sprint
Updated by Peter Amstutz 5 days ago
- Target version changed from Development 2024-10-23 sprint to Development 2024-11-06 sprint
Actions