[ 
https://issues.apache.org/jira/browse/CASSANDRA-13333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15930330#comment-15930330
 ] 

Benjamin Lerer commented on CASSANDRA-13333:
--------------------------------------------

I have pushed an initial version of the patch 
[here|https://github.com/apache/cassandra/compare/trunk...blerer:13333-3.0].
The patch replace the {{jnaAvailable()}} method by the {{isAvailable()}} method 
which will return {{true}} only if the library has been sucessfully linked.
In the case of Windows {{isAvailable()}} will always return {{false}}.
The patch remove the startup check so the server will start even if JNA is not 
found (in which case a warning would have already been logged).
The {{NativeAccessMBean::isAvailable}} method will now only return {{true}} if 
the native library has been successfully linked.  

If nobody disagree with the approach, I will push it on CI next week. 

> Cassandra does not start on Windows due to 'JNA link failure'
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-13333
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13333
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>            Priority: Blocker
>
> Cassandra 3.0 HEAD does not start on Windows. The only error in the logs is: 
> {{ERROR 16:30:10 JNA failing to initialize properly.}} 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to