wilkinsona opened a new pull request #9968:
URL: https://github.com/apache/kafka/pull/9968


   This pull request back-ports to 2.6 the changes I contributed in 
https://github.com/apache/kafka/pull/9947.
   
   Previously, `StateDirectory` used `PosixFilePermissions` to configure its 
directories' permissions which fails on Windows as its file system is not 
POSIX-compliant. This PR updates `StateDirectory` to fall back to the `File` 
API on non-POSIX-compliant file systems. The File API doesn't allow as much 
control over the permissions so they're as close as the API permits.
   
   The unit tests have been updated to also verify the behaviour on 
non-POSIX-compliant file systems.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to