[
https://issues.apache.org/jira/browse/KNOX-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16868860#comment-16868860
]
Kevin Risden commented on KNOX-1881:
------------------------------------
So in KNOX-1821, we assumed that since FileLock from Java NIO didn't matter in
single JVM environment we didn't have to care. It turns out that in the case of
gateway and knoxcli, they are separate JVMs and both try to read/write files at
the same time. This is two separate JVMs and so we need to do something to
prevent the duplicate writes.
> Change file locking mechanism in DefaultKeystoreService to use Java NIO API
> ---------------------------------------------------------------------------
>
> Key: KNOX-1881
> URL: https://issues.apache.org/jira/browse/KNOX-1881
> Project: Apache Knox
> Issue Type: Improvement
> Components: KnoxCLI, Server
> Reporter: Robert Levas
> Assignee: Kevin Risden
> Priority: Critical
> Fix For: 1.3.0
>
>
> Change file locking mechanism in
> {{org.apache.knox.gateway.services.security.impl.DefaultKeystoreService}} to
> use Java NIO API.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)