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

Fix NPE on concurrency in KeyValueBlobTransientStore cleanup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.10-SNAPSHOT
    • Fix Version/s: 10.10
    • Component/s: Key/Value Store

      Description

      In some concurrency scenarios (concurrent uploads from the mobile app for instance) we have this issue:

      	Suppressed: java.lang.NullPointerException
      		at java.util.HashMap.merge(HashMap.java:1225)
      		at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
      		at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
      		at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      		at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.getParameters(KeyValueBlobTransientStore.java:386)
      		at org.nuxeo.ecm.automation.server.jaxrs.batch.Batch.getFileEntry(Batch.java:141)
      		at org.nuxeo.ecm.automation.server.jaxrs.batch.Batch.removeFileEntry(Batch.java:242)
      		at org.nuxeo.ecm.automation.server.jaxrs.batch.Batch.clean(Batch.java:231)
      		at org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent.clean(BatchManagerComponent.java:298)
      		at org.nuxeo.ecm.restapi.server.jaxrs.BatchUploadObject.lambda$executeBatch$0(BatchUploadObject.java:479)
      		at org.nuxeo.ecm.webengine.jaxrs.context.RequestContext.dispose(RequestContext.java:95)
      

        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 - 1 hour
                  1h