-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
Environment (Required on creation):
Optimize:
- version 3.7.2, build with java11 (AdoptOnepnJDK jdk-11.0.9.1+1)
- running on openshift
Other components:
- clone of the PROD DB, used only for optimize
- dedicated server with embedded camunda engine
- elastic server cluster with 5 physical nodes
- dedicated cockpit
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
10:28:41.149 [EngineImportScheduler-1] DEBUG o.c.o.s.i.e.f.i.CompletedUserTaskInstanceFetcher - Fetched [1000] completed user task instances which ended after set timestamp with page size [1000] within [256] ms 10:28:41.151 [EngineImportScheduler-1] ERROR o.c.o.s.i.e.m.CompletedUserTaskEngineImportMediator - Was not able to import next page and reached max backoff, aborting this run. java.lang.NullPointerException: flowNodeInstanceId is marked non-null but is null at org.camunda.optimize.dto.optimize.query.event.process.FlowNodeInstanceDto.<init>(FlowNodeInstanceDto.java:99) at org.camunda.optimize.service.importing.engine.service.CompletedUserTaskInstanceImportService.mapEngineEntityToOptimizeEntity(CompletedUserTaskInstanceImportService.java:99) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at org.camunda.optimize.service.importing.engine.service.CompletedUserTaskInstanceImportService.mapEngineEntitiesToOptimizeEntities(CompletedUserTaskInstanceImportService.java:78) at org.camunda.optimize.service.importing.engine.service.CompletedUserTaskInstanceImportService.executeImport(CompletedUserTaskInstanceImportService.java:50) at org.camunda.optimize.service.importing.TimestampBasedImportMediator.importNextEnginePageTimestampBased(TimestampBasedImportMediator.java:57) at org.camunda.optimize.service.importing.TimestampBasedImportMediator.importNextPage(TimestampBasedImportMediator.java:38) at org.camunda.optimize.service.importing.BackoffImportMediator.importNextPageRetryOnError(BackoffImportMediator.java:98) at org.camunda.optimize.service.importing.BackoffImportMediator.runImport(BackoffImportMediator.java:46) at org.camunda.optimize.service.importing.AbstractImportScheduler.lambda$executeImportRound$2(AbstractImportScheduler.java:99) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550) at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:517) at org.camunda.optimize.service.importing.AbstractImportScheduler.executeImportRound(AbstractImportScheduler.java:108) at org.camunda.optimize.service.importing.engine.EngineImportScheduler.runImportRound(EngineImportScheduler.java:57) at org.camunda.optimize.service.importing.AbstractImportScheduler.runImportRound(AbstractImportScheduler.java:65) at org.camunda.optimize.service.importing.AbstractImportScheduler.run(AbstractImportScheduler.java:35) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
Steps to reproduce (Required on creation):
- the scenario is somehow unclear, why it happens
- this kind of NPE is thrown very often
Observed Behavior (Required on creation):
- it looks like the import of the proces instances is stucking
- there are more than 60K entries of a specific process definition to be imported, actually only ~17K are done