accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1992) Don't use CachedConfiguration in examples
Date Thu, 12 Dec 2013 00:28:09 GMT

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

ASF subversion and git services commented on ACCUMULO-1992:
-----------------------------------------------------------

Commit 7b7521dd92b81f4c91eae2415f6d835944b15355 in branch refs/heads/master 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)

Mime
View raw message