Description
The file locking mechanism in org.apache.knox.gateway.services.security.impl.DefaultKeystoreService today relies on read/write locks to prevent multiple threads from editing a single keystore. Java NIO API file locking adds the protection for reading/writing from multiple JVMs. Since DefaultKeystoreService is used in both gateway and knoxcli, we need to protect against this type of access happening at once.
https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileLock.html
Attachments
Issue Links
- is a clone of
-
KNOX-1821 Change file locking mechanism in DefaultKeystoreService to use Java NIO API
- Closed
- is related to
-
KNOX-2200 DefaultKeystoreService can lose entries under concurrent access
- Resolved
-
KNOX-1917 DefaultKeystoreService should use a shared read lock
- Closed
- relates to
-
KNOX-1230 Many Concurrent Requests to Knox causes URL Mangling
- Closed
- links to