Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • master
    • None
    • pulsar, Queue

    Description

      https://ci-builds.apache.org/job/james/job/ApacheJames/job/PR-826/7/

      Pulsar mail queue bringed in some unstable tests

      Test Result (4 failures / +4)
      
          org.apache.james.queue.pulsar.PulsarMailQueueTest.removeByRecipientShouldRemoveSpecificEmail
          org.apache.james.queue.pulsar.PulsarMailQueueTest.removeByRecipientShouldRemoveSpecificEmailWhenMultipleRecipients{List, MailAddress}[5]
          org.apache.james.queue.pulsar.PulsarMailQueueTest.removeByRecipientShouldRemoveSpecificEmailWhenMultipleRecipients{List, MailAddress}[6]
          org.apache.james.queue.pulsar.PulsarMailQueueTest.removeShouldRemoveMailFromStoreWhenFilteredOut
      

      Looking at the first, some email expected to be deleted were not:

      Error Message
      
      Expecting actual:
        ["name1", "name2"]
      to contain exactly (and in same order):
        ["name1"]
      but some elements were not expected:
        ["name2"]
      

      Maybe because propagation of the delete filter is asynchronous? (IE the client delete returns when enqueuing the filter but without any warranty so as when it would be dequeued and applied). If so this isa design flaw and I hardly see how to improve that .

      Or we add a delay in the tests to relax the consistency guaranty?

      Attachments

        Activity

          People

            jhelou Jean Helou
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m