Diagnosis service sometimes fails to conduct analysis

Description

In the log of the CMR we have seen such logs:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 2017-10-10 11:54:57,334: 6489681 [ool-10-thread-1] WARN agnosis.engine.session.Session - Not processed Session gets passivated! 2017-10-10 11:54:57,334: 6489681 [ool-10-thread-1] WARN agnosis.engine.session.Session - Not processed Session gets passivated! 2017-10-10 11:54:57,334: 6489681 [ool-10-thread-1] WARN nosis.service.DiagnosisService - Failed conducting diagnosis! java.lang.IllegalArgumentException: No timer data available! at rocks.inspectit.server.diagnosis.service.aggregation.DiagnosisDataAggregator.getAggregatedDiagnosisData(DiagnosisDataAggregator.java:66) at rocks.inspectit.server.diagnosis.service.aggregation.DiagnosisDataAggregationPerformer.aggregateInvocationSequenceData(DiagnosisDataAggregationPerformer.java:50) at rocks.inspectit.server.diagnosis.service.aggregation.DiagnosisDataAggregationPerformer.aggregateInvocationSequenceDataList(DiagnosisDataAggregationPerformer.java:63) at rocks.inspectit.server.diagnosis.service.rules.impl.TimeWastingOperationsRule.getTimeWastingOperationsCandidatesSorted(TimeWastingOperationsRule.java:112) at rocks.inspectit.server.diagnosis.service.rules.impl.TimeWastingOperationsRule.action(TimeWastingOperationsRule.java:63) ... 15 common frames omitted Wrapped by: java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at rocks.inspectit.server.diagnosis.engine.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:165) at rocks.inspectit.server.diagnosis.engine.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:143) at rocks.inspectit.server.diagnosis.engine.rule.ActionMethod.execute(ActionMethod.java:86) ... 8 common frames omitted Wrapped by: rocks.inspectit.server.diagnosis.engine.rule.exception.RuleExecutionException: Rule: 'TimeWastingOperationsRule' failed with error: Failed to invoke action method (action) at rocks.inspectit.server.diagnosis.engine.rule.ActionMethod.execute(ActionMethod.java:89) at rocks.inspectit.server.diagnosis.engine.rule.RuleDefinition.execute(RuleDefinition.java:170) at rocks.inspectit.server.diagnosis.engine.rule.RuleDefinition.execute(RuleDefinition.java:202) at rocks.inspectit.server.diagnosis.engine.session.Session.doProcess(Session.java:307) ... 5 common frames omitted Wrapped by: rocks.inspectit.server.diagnosis.engine.session.exception.SessionException: Diagnosis Session failed with error(s) at rocks.inspectit.server.diagnosis.engine.session.Session.failure(Session.java:345) at rocks.inspectit.server.diagnosis.engine.session.Session.doProcess(Session.java:317) at rocks.inspectit.server.diagnosis.engine.session.Session.call(Session.java:184) 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)

Reproducible by:

1. Start petclinic with the petclinic configuration
2. Activate diagnosis with baseline of 100ms

Environment

None

Status

Assignee

Christian Vögele

Reporter

Ivan Senic

Labels

None

Pull Request

None

Integrator

Ivan Senic

Sprint

None

Fix versions

Affects versions

1.8.5

Priority

High
Configure