Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28553

Fix BAF action's query in charge of retrieving expired documents

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF22, 11.1
    • Component/s: Retention

      Description

      TestRetentionManager.testRetainUntilDateSaved fails randomly:

      java.lang.AssertionError
      	at org.junit.Assert.assertNotNull(Assert.java:722)
      	at org.nuxeo.retention.test.TestRetentionManager.testRetainUntilDateSaved(TestRetentionManager.java:218)
      

      On the line assertNotNull(saved).

      It's likely that on slow machines something takes too long.

      EDIT the query used to retrieve the documents of which the retention date expired rounds the now date down to the lower second i.e. no millisecond precision. As a direct result, the unit tests playing with retention periods of few hundred of milliseconds, we have edge cases where some expired documents are not caught by the BAF action in charge of notifying the retention expired.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.