jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3585) Reduce memory usage of SegmentParserTest
Date Wed, 04 Nov 2015 12:23:27 GMT

    [ https://issues.apache.org/jira/browse/OAK-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989461#comment-14989461

Marcel Reutegger commented on OAK-3585:

It seems this is caused by Mockito, which tracks all method invocations on the mocked objects.
Invocations are tracked with a ThreadLocal and not released immediately.

More recent versions of Mockito allow you to disable tracking of method invocations. AFAICS
this is not required for any of the tests in SegmentParserTest.

> Reduce memory usage of SegmentParserTest
> ----------------------------------------
>                 Key: OAK-3585
>                 URL: https://issues.apache.org/jira/browse/OAK-3585
>             Project: Jackrabbit Oak
>          Issue Type: Test
>          Components: core, segmentmk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
> Some of the tests in SegmentParserTest use quite a lot of memory, which is not immediately
released after the test. Every now and then this causes the subsequent test to fail with an
OOME. See e.g.: https://travis-ci.org/apache/jackrabbit-oak/builds/89176732

This message was sent by Atlassian JIRA

View raw message