You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2018/01/29 15:11:00 UTC

[jira] [Commented] (ACCUMULO-4779) Instantiating iterator accesses config in a very slow way

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

Keith Turner commented on ACCUMULO-4779:
----------------------------------------

After fixing the ContextManager code, I found another place through profiling where creating iterators was reading config in a really slow way.  I am thinking of making AccumuloConfiguration cache the config that has a given prefix.

 

https://github.com/apache/accumulo/blob/rel/1.8.1/core/src/main/java/org/apache/accumulo/core/iterators/IteratorUtil.java#L158

> Instantiating iterator accesses config in a very slow way
> ---------------------------------------------------------
>
>                 Key: ACCUMULO-4779
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4779
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.7.3, 1.8.1
>            Reporter: Keith Turner
>            Assignee: Keith Turner
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.7.4, 1.9.0, 2.0.0
>
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> I noticed this will looking at profiling data.  When creating iterators all configuration is put in a TreeMap just to get two keys out.
> The following code 
> https://github.com/apache/accumulo/blob/rel/1.8.1/start/src/main/java/org/apache/accumulo/start/classloader/vfs/ContextManager.java#L118
> calls the following code
> https://github.com/apache/accumulo/blob/rel/1.8.1/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java#L153



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)