camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-11944) Ensure HBaseConfiguration ClassLoader is set correctly
Date Wed, 25 Oct 2017 12:12:01 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-11944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrea Cosentino resolved CAMEL-11944.
--------------------------------------
    Resolution: Fixed

> Ensure HBaseConfiguration ClassLoader is set correctly
> ------------------------------------------------------
>
>                 Key: CAMEL-11944
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11944
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-hbase
>    Affects Versions: 2.20.0
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Minor
>
> Follow up on CAMEL-11692, my fix in HBaseComponent isn't quite right because a call to
HBaseConfiguration.create() automatically sets the ClassLoader on the HBaseConfiguration object.
Hence the conditional logic that follows is always false.
> I think it'd be better to move [this logic|https://github.com/apache/camel/blob/master/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/HBaseComponent.java#L53-L59]
into the preceding if block where the HBaseConfiguration is created. If folks provide their
own configuration, then it's up to them to make sure they have set the ClassLoader correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message