Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky Quartz job test #1107

Closed
felixbarny opened this issue Mar 31, 2020 · 0 comments · Fixed by #1144
Closed

Flaky Quartz job test #1107

felixbarny opened this issue Mar 31, 2020 · 0 comments · Fixed by #1144
Assignees
Labels
flaky-test Unstable or unreliable test cases.
Milestone

Comments

@felixbarny
Copy link
Member

Test method

co.elastic.apm.agent.quartz.job.JobTransactionNameInstrumentationTest

Test logs

Click to expand
<1s
Error
Unable to unschedule trigger [DEFAULT.myTrigger] while deleting job [group1.dummyJobName]
Stacktrace
org.quartz.SchedulerException: Unable to unschedule trigger [DEFAULT.myTrigger] while deleting job [group1.dummyJobName]
	at org.quartz.core.QuartzScheduler.deleteJob(QuartzScheduler.java:966)
	at org.quartz.impl.StdScheduler.deleteJob(StdScheduler.java:301)
	at co.elastic.apm.agent.quartz.job.JobTransactionNameInstrumentationTest.testJobWithGroup(JobTransactionNameInstrumentationTest.java:95)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:628)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:117)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:184)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:180)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:127)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$4(NodeTestTask.java:108)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:98)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:74)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1378)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$4(NodeTestTask.java:112)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:98)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:74)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1378)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$4(NodeTestTask.java:112)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:98)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:74)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:132)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:111)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Standard Error
[main] WARN co.elastic.apm.agent.impl.ElasticApmTracer - Attempting to resume the agent when it is in a RUNNING state
[main] INFO org.quartz.core.QuartzScheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
[DefaultQuartzScheduler_Worker-2] DEBUG co.elastic.apm.agent.impl.transaction.AbstractSpan - increment references to '' 00-a78922267afc60499515fefff1db9f5b-3efe41e166f04f96-01 (227bd7b1) (1)
[DefaultQuartzScheduler_Worker-2] DEBUG co.elastic.apm.agent.impl.transaction.AbstractSpan - increment references to 'group1.dummyJobName' 00-a78922267afc60499515fefff1db9f5b-3efe41e166f04f96-01 (227bd7b1) (2)
[DefaultQuartzScheduler_Worker-2] DEBUG co.elastic.apm.agent.impl.transaction.AbstractSpan - decrement references to 'group1.dummyJobName' 00-a78922267afc60499515fefff1db9f5b-3efe41e166f04f96-01 (227bd7b1) (1)

Additional context

Reported here: #1105 (comment)

@felixbarny felixbarny added the flaky-test Unstable or unreliable test cases. label Mar 31, 2020
@felixbarny felixbarny added this to the 7.7 milestone Mar 31, 2020
@felixbarny felixbarny self-assigned this Mar 31, 2020
@SylvainJuge SylvainJuge changed the title [Flaky Test] Quartz job test Flaky Quartz job test Apr 1, 2020
felixbarny added a commit to felixbarny/apm-agent-java that referenced this issue Apr 16, 2020
felixbarny added a commit that referenced this issue Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant