[ https://issues.apache.org/jira/browse/HBASE-19508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16289636#comment-16289636 ]
Peter Somogyi commented on HBASE-19508: --------------------------------------- +1 nit. License is different for the test. Extra "Copyright The Apache Software Foundation" and link indentation. > ReadOnlyConfiguration throws exception if any Configuration in current > context calls addDefautlResource > ------------------------------------------------------------------------------------------------------- > > Key: HBASE-19508 > URL: https://issues.apache.org/jira/browse/HBASE-19508 > Project: HBase > Issue Type: Bug > Components: conf > Reporter: stack > Assignee: stack > Fix For: 2.0.0-beta-1 > > Attachments: HBASE-19508.master.001.patch > > > Reported by [~psomogyi] up on HBASE-19295, the issue that added CpEnv > returning a read-only Configuration. > Issue is that hadoop Configuration registers every created Configuration in a > static REGISTRY on construction. A call to addDefaultResource -- e.g. sqoop > does this in tests to get its configurations into the mix -- results in a > call to every registered Configurations loadResource.. which is disallowed in > our read-only Configuration. -- This message was sent by Atlassian JIRA (v6.4.14#64029)