You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Francesco Mari (JIRA)" <ji...@apache.org> on 2018/04/25 12:56:00 UTC

[jira] [Resolved] (OAK-7449) ObservationQueueFullWarnTest#testQueueFullThenFlushing requires to know the number of events upfront

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

Francesco Mari resolved OAK-7449.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.1

Fixed at r1830071.

> ObservationQueueFullWarnTest#testQueueFullThenFlushing requires to know the number of events upfront
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OAK-7449
>                 URL: https://issues.apache.org/jira/browse/OAK-7449
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Francesco Mari
>            Assignee: Francesco Mari
>            Priority: Major
>             Fix For: 1.10, 1.9.1
>
>
> The test {{ObservationQueueFullWarnTest#testQueueFullThenFlushing}} uses {{EventIterator#getSize}} but it always assumes that the method returns a positive value. Instead, the Javadoc for {{EventIterator#getSize}} states that the implementation must return {{-1}} if there aren't any information about the precise number of elements. The test should be adapted in order to account for this corner case.



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