sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Chanan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SENTRY-233) Disable hdfs blockcache during solr e2e tests
Date Fri, 23 May 2014 22:48:02 GMT

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

Gregory Chanan updated SENTRY-233:
----------------------------------

    Attachment: SENTRY-233.patch

Review request: https://reviews.apache.org/r/21880/

> Disable hdfs blockcache during solr e2e tests
> ---------------------------------------------
>
>                 Key: SENTRY-233
>                 URL: https://issues.apache.org/jira/browse/SENTRY-233
>             Project: Sentry
>          Issue Type: Test
>    Affects Versions: 1.4.0
>            Reporter: Gregory Chanan
>            Assignee: Gregory Chanan
>             Fix For: 1.4.0
>
>         Attachments: SENTRY-233.patch
>
>
> I've seen cases where the tests fail because it runs out memory to allocate the cache,
e.g.:
> {code}
> 2014-05-23 15:20:50,236 (qtp1580548625-152) [ERROR - org.apache.solr.core.CoreContainer.recordAndThrow(\
> CoreContainer.java:910)] Unable to create core: allRolesCollection_shard1_replica1
> org.apache.solr.common.SolrException: The max direct memory is likely too low.  Either
increase it (by \
> adding -XX:MaxDirectMemorySize=<size>g -XX:+UseLargePages to your containers startup
args) or disable d\
> irect allocation using solr.hdfs.blockcache.direct.memory.allocation=false in solrconfig.xml.
If you ar\
> e putting the block cache on the heap, your java heap size might not be large enough.
Failed allocating\
> ~134.217728 MB.
>        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:858)
>        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:641)
>        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:556)
>        at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:571)
>        at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:2\
> 00)
>        at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:186)
>        at org.apache.solr.handler.admin.SecureCoreAdminHandler.handleRequestBody(SecureCoreAdminHandle\
> r.java:150)
> {code}
> It's probably better to just disable to cache because that isn't really what we are testing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message