You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/07/13 20:57:00 UTC
[jira] [Commented] (HBASE-18378) Cloning configuration contained in
CoprocessorEnvironment doesn't work
[ https://issues.apache.org/jira/browse/HBASE-18378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16086393#comment-16086393 ]
Ted Yu commented on HBASE-18378:
--------------------------------
Have you tried this method from HBaseConfiguration ?
{code}
public static Configuration create(final Configuration that) {
{code}
> Cloning configuration contained in CoprocessorEnvironment doesn't work
> ----------------------------------------------------------------------
>
> Key: HBASE-18378
> URL: https://issues.apache.org/jira/browse/HBASE-18378
> Project: HBase
> Issue Type: Bug
> Reporter: Samarth Jain
>
> In our phoenix co-processors, we need to clone configuration passed in CoprocessorEnvironment.
> However, using the copy constructor declared in it's parent class, Configuration, doesn't copy over anything.
> For example:
> {code}
> CorpocessorEnvironment e
> Configuration original = e.getConfiguration();
> Configuration clone = new Configuration(original);
> clone.get(HConstants.ZK_SESSION_TIMEOUT) -> returns null
> e.configuration.get(HConstants.ZK_SEESION_TIMEOUT) -> returns HConstants.DEFAULT_ZK_SESSION_TIMEOUT
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)