accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ACCUMULO-3212) Configuration objects created with CredentialProvider load defaults unnecessarily
Date Mon, 20 Oct 2014 22:04:34 GMT

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

Josh Elser resolved ACCUMULO-3212.
----------------------------------
    Resolution: Fixed

Got around the expensive {{new Configuration(true)}} by using the copy-constructor on {{Configuration}}
with {{CachedConfiguration.getInstance()}} as the argument.

Let me know if this doesn't resolve the issue you were seeing, [~billie.rinaldi].

> Configuration objects created with CredentialProvider load defaults unnecessarily
> ---------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-3212
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3212
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: tserver
>    Affects Versions: 1.6.1
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Minor
>             Fix For: 1.6.2, 1.7.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Jstack'ed a tserver and caught it in the middle of doing a bunch of URLClassloader and
Jar stuff when creating a Hadoop Configuration. Obviously, this struck me as odd (given that
I know those aren't "fast" methods).
> Looking at it some more, when I created the Configuration objects, I didn't pass in {{false}}
so the defaults were getting loaded. Regardless of how expensive it actually is, it's unnecessary.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message