Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7449

ObservationQueueFullWarnTest#testQueueFullThenFlushing requires to know the number of events upfront

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.9.1
    • jcr
    • None

    Description

      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.

      Attachments

        Activity

          People

            frm Francesco Mari
            frm Francesco Mari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: