Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry Files.move on AccessDeniedException #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheElectronWill
Copy link
Owner

This is an attempt to fix #183 by retrying the atomic move operation after some delay, if it fails with AccessDeniedException.

Testing

Could someone on Windows (with Windows Defender) compile night-config from this branch and try it?
You could try to run the following test many times in a row to see if it works despite the antivirus.

./gradlew :json:java11Test --tests '*JsonWriterTest.writeAtomic'

@TheElectronWill TheElectronWill force-pushed the fix/windows-defender-workaround branch from d2a7522 to cf0debe Compare August 20, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AccessDeniedException when using WritingMode.REPLACE_ATOMIC
1 participant