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

Make WorkManager.awaitCompletion works in cluster mode

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 7.10-HF03, 8.1
    • Component/s: Events / Works

      Description

      The WorkManagerImpl.awaitCompletion implement rely on a Java Condition lock that works only with a standalone Nuxeo instance.
      This method should rely on message queue size so it will work in cluster mode when using a Redis job queue.

        Attachments

          Issue Links

            Activity

            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo-master #1270
            NXP-18550: indent (jenkins: 7947879ef4fb05a83f31cf88303291130539d362)
            NXP-18550: Don't rely on the work queue to list scheduled job, the queue is managed by the TP and there is no state when the work is taken from the queue and not yet run. Use a dedicated scheduled set instead. (jenkins: e320b1ba6e6347c26447b5a65bb4929d37a859fd)
            NXP-18550: fix manual RedisFeature setup that don't init the workmanager (jenkins: 481215126aedb95d37c10cb160d686088fefac3b)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo-master #1270 NXP-18550 : indent (jenkins: 7947879ef4fb05a83f31cf88303291130539d362 ) NXP-18550 : Don't rely on the work queue to list scheduled job, the queue is managed by the TP and there is no state when the work is taken from the queue and not yet run. Use a dedicated scheduled set instead. (jenkins: e320b1ba6e6347c26447b5a65bb4929d37a859fd ) NXP-18550 : fix manual RedisFeature setup that don't init the workmanager (jenkins: 481215126aedb95d37c10cb160d686088fefac3b )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in addons_nuxeo-liveconnect-master #590
            NXP-18550: do not override work.getId, this creates multiple jobs with the same id, even if processed they are not properly counted or listed by the workmanager (jenkins: e07da5a9c1e5916d46a1834f27d83a7b72eda22a)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in addons_nuxeo-liveconnect-master #590 NXP-18550 : do not override work.getId, this creates multiple jobs with the same id, even if processed they are not properly counted or listed by the workmanager (jenkins: e07da5a9c1e5916d46a1834f27d83a7b72eda22a )
            Hide
            hudson Jenkins added a comment -

            FAILURE: Integrated in nuxeo-7.10 #97
            NXP-18550: indent (bdelbosc: ebbd7514dfb9697d72d1d34452f9e5a57e799f9c)
            NXP-18550: Don't rely on the work queue to list scheduled job, the queue is managed by the TP and there is no state when the work is taken from the queue and not yet run. Use a dedicated scheduled set instead. (bdelbosc: 257b3f541f452a1d688097221f7f5fd5b0888962)
            NXP-18550: fix manual RedisFeature setup that don't init the workmanager (bdelbosc: 086bf7aa96b6ab1ac421b7026e8c7e97b3dfadc1)

            Show
            hudson Jenkins added a comment - FAILURE: Integrated in nuxeo-7.10 #97 NXP-18550 : indent (bdelbosc: ebbd7514dfb9697d72d1d34452f9e5a57e799f9c ) NXP-18550 : Don't rely on the work queue to list scheduled job, the queue is managed by the TP and there is no state when the work is taken from the queue and not yet run. Use a dedicated scheduled set instead. (bdelbosc: 257b3f541f452a1d688097221f7f5fd5b0888962 ) NXP-18550 : fix manual RedisFeature setup that don't init the workmanager (bdelbosc: 086bf7aa96b6ab1ac421b7026e8c7e97b3dfadc1 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo-7.10 #99
            NXP-18550: fix backport (efge: db46fd28467ea4dd9bb926399548e8b29407b6f5)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo-7.10 #99 NXP-18550 : fix backport (efge: db46fd28467ea4dd9bb926399548e8b29407b6f5 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in addons_nuxeo-liveconnect-7.10 #61
            NXP-18550: do not override work.getId, this creates multiple jobs with the same id, even if processed they are not properly counted or listed by the workmanager (nelsonsilva: 57897015f8430af096df72e776fac2b8a717ce31)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in addons_nuxeo-liveconnect-7.10 #61 NXP-18550 : do not override work.getId, this creates multiple jobs with the same id, even if processed they are not properly counted or listed by the workmanager (nelsonsilva: 57897015f8430af096df72e776fac2b8a717ce31 )

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: