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

Madhan Neethiraj commented on RANGER-3671:
------------------------------------------

[~canguan]  - the expectation is that {{pluginClass}}, the class that 
implements {{RangerChainedPlugin}}, has a constructor that takes 2 arguments 
{{(RangerBasePlugin parent, String serviceName)}}, and that constructor calls 
{{RangerBasePlugin}} constructor with 3 arguments {{(RangerBasePlugin parent, 
String serviceType, String serviceName)}}.

> ChainedPlugin is not constructed correctly
> ------------------------------------------
>
>                 Key: RANGER-3671
>                 URL: https://issues.apache.org/jira/browse/RANGER-3671
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 2.2.0
>            Reporter: CanGuan
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Default constructor of RangerChainedPlugin is:
> {code:java}
> public RangerChainedPlugin(RangerBasePlugin rootPlugin, String serviceType, 
> String serviceName){} {code}
>  But in RangerBasedPlugin#initChainedPlugins method, the chained plugin is 
> not construct correctly:
> {code:java}
> RangerChainedPlugin        chainedPlugin = 
> pluginClass.getConstructor(RangerBasePlugin.class, 
> String.class).newInstance(this, chainedService); {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to