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

Alex Parvulescu commented on OAK-4752:
--------------------------------------

2 comments:
* first you can use a single thread executor 
{{Executors.newSingleThreadScheduledExecutor()}}, no need to introduce 
concurrency here
* second, don't forget to take care of closing the executor when the test ends 
(ie. {{new ExecutorCloser(executor).close()}})

> Coldstandby runs tests with NoopStats
> -------------------------------------
>
>                 Key: OAK-4752
>                 URL: https://issues.apache.org/jira/browse/OAK-4752
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>    Affects Versions: Segment Tar 0.0.10
>            Reporter: Timothee Maret
>            Assignee: Timothee Maret
>             Fix For: Segment Tar 0.0.20
>
>         Attachments: OAK-4752.patch
>
>
> As described in OAK-4736, the 
> {{org.apache.jackrabbit.oak.segment.standby.TestBase}} runs with a 
> {{org.apache.jackrabbit.oak.stats.NoopStats}} which makes makes the 
> assertions related to statistics to fail.



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

Reply via email to