Add retry logic to ConsistentFileAnalysisStore.set for Windows file Locking#1631
Add retry logic to ConsistentFileAnalysisStore.set for Windows file Locking#1631Dairus01 wants to merge 1 commit intosbt:developfrom
Conversation
|
@eed3si9n Please I would love for you to review this PR |
|
Interesting. I've already implemented retry on move in Dec 2024 (sbt/io#398). If the problem is still happening, simply retrying I don't think will change the situation. |
This PR adds targeted retry logic to |
|
I reported sbt/sbt#7976 on Dec 26, 2024: and I sent sbt/io#398 a few days afterwards. |
This PR adds retry logic to the
setmethod inConsistentFileAnalysisStoreto handle Windows file locking issues, whereIO.movecan fail with "Access is denied" on CI environments like AppVeyor.moveWithRetrymethod that retries the move operation up to 5 times with a 100ms delay onFileNotFoundException.Closes sbt/sbt#7976