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

StreamWorkManager impl can raise BufferOverflowException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.3
    • Fix Version/s: 9.10
    • Component/s: Events / Works, Streams

      Description

      On concurrency, the duplicate work ids detection can raise an exception

      2017-12-05 12:30:15,438 WARN  [defaultPool-00,in:45556,inCheckpoint:45555,out:0,lastRead:1512477015426,lastTimer:0,wm:198243385606668289
      ,loop:233132,checkpoint] [org.nuxeo.ecm.core.work.WorkComputation] Work id: 13561036915305.61103729 title: Listener docRemovedCommentLis
      tener [documentRemoved/106242124, documentRemoved/106098965, documentRemoved/106330459, documentRemoved/106639317, documentRemoved/10664
      6213], raise an exception, work is marked as completed
      org.apache.commons.collections.BufferOverflowException: The buffer cannot hold more than 50 objects.
              at org.apache.commons.collections.buffer.BoundedFifoBuffer.add(BoundedFifoBuffer.java:237)
              at org.apache.commons.collections.buffer.CircularFifoBuffer.add(CircularFifoBuffer.java:93)
              at org.nuxeo.ecm.core.work.WorkComputation.processRecord(WorkComputation.java:71)
              at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecord(ComputationRunner.java:256)
              at org.nuxeo.lib.stream.computation.log.ComputationRunner.processLoop(ComputationRunner.java:180)
              at org.nuxeo.lib.stream.computation.log.ComputationRunner.run(ComputationRunner.java:139)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 2 hours
                  2h