You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/01/13 19:00:20 UTC

[jira] [Commented] (NIFI-6884) Class loader isolation not working properly with native libraries

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

ASF subversion and git services commented on NIFI-6884:
-------------------------------------------------------

Commit b7fb94723c06ef0277ae0c274f6dd318c90f00ea in nifi's branch refs/heads/master from Tamas Palfy
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b7fb947 ]

NIFI-6884 - Native library loading fixed/improved: NarClassLoader and InstanceClassLoader can load libraries from their own or their ancestors' NAR-INF/bundled-dependencies/native directory.
They also scan directories defined via java.library.path system property.
InstanceClassLoader also checks additional classpath resources defined by PropertyDescriptors with "dynamicallyModifiesClasspath(true)".
Added tests for loading native libraries. Supports mac only.
Added support for loading native libs from additional resources in AbstractHadoopProcessor.
Updated javadoc for PropertyDescriptor.dynamicallyModifiesClasspath.

This closes #3894.

Signed-off-by: Mark Payne <ma...@hotmail.com>


> Class loader isolation not working properly with native libraries
> -----------------------------------------------------------------
>
>                 Key: NIFI-6884
>                 URL: https://issues.apache.org/jira/browse/NIFI-6884
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Tamas Palfy
>            Assignee: Tamas Palfy
>            Priority: Major
>             Fix For: 1.11.0
>
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> Loading native libraries has issues:
>  * NAR-INF/bundled-dependencies/native is not scanned by InstanceClassLoader
>  * Same library with same full path cannot be loaded
>  * Cannot define additional scan target locations via property in processors/services
>  * Chooses first found library, even if incompatible with current OS



--
This message was sent by Atlassian Jira
(v8.3.4#803005)