You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/12/12 01:28:07 UTC
[jira] [Commented] (ACCUMULO-1992) Don't use CachedConfiguration in
examples
[ https://issues.apache.org/jira/browse/ACCUMULO-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845902#comment-13845902 ]
ASF subversion and git services commented on ACCUMULO-1992:
-----------------------------------------------------------
Commit 7b7521dd92b81f4c91eae2415f6d835944b15355 in branch refs/heads/1.6.0-SNAPSHOT from [~ctubbsii]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=7b7521d ]
ACCUMULO-1992 Remove CachedConfiguration from examples
> Don't use CachedConfiguration in examples
> -----------------------------------------
>
> Key: ACCUMULO-1992
> URL: https://issues.apache.org/jira/browse/ACCUMULO-1992
> Project: Accumulo
> Issue Type: Task
> Reporter: Christopher Tubbs
> Assignee: Christopher Tubbs
> Fix For: 1.6.0
>
>
> CachedConfiguration is an internal singleton object we use to avoid reading the Hadoop Configuration files multiple times in our server code. It should not be used in examples, because that encourages users to to use things not in our public API, and because it hides information about the kind of object expected in the API methods we call in the examples.
> new Configuration() should be acceptable in the examples, because it makes it clear that it's a hadoop configuration object, unrelated to Accumulo's code.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)