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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2018/05/15 10:04:03 UTC

[jira] [Closed] (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 ]

Davide Giannella closed OAK-7449.
---------------------------------

Bulk close 1.9.1

> 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)