[ https://issues.apache.org/jira/browse/GEODE-8634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17241968#comment-17241968 ]
Kirk Lund edited comment on GEODE-8634 at 12/2/20, 1:29 AM: ------------------------------------------------------------ The bug was caused by: # The previous test left threadId set to a non-zero value* # The {{await()}} in the second thread completes before the {{threadId.set()}} in the first thread executes # The second thread returns the wrong value for remoteThreadId # The wrong remoteThreadId is then compared to the caught exception's message which has a different thread id *Previous test was await_callable_timeout_includesStackTraceAsCause in all three recorded test failures Fix is simple: always set threadId to zero value before running each test. was (Author: klund): The bug was caused by: # The previous test left threadId set to a non-zero value* # The {{await()}} in the second thread completes before the {{threadId.set()}} in the first thread executes # The second thread returns the wrong value for remoteThreadId # The wrong remoteThreadId is then compared to the caught exception's message which has a different thread id *Previous test was await_callable_timeout_includesStackTraceAsCause in all three recorded test failures Fix is simple: always set threadId to zero value before each test runs. > CI failure: AsyncInvocationTimeoutDistributedTest. > get_callable_timeout_includesStackTraceAsCause > ------------------------------------------------------------------------------------------------- > > Key: GEODE-8634 > URL: https://issues.apache.org/jira/browse/GEODE-8634 > Project: Geode > Issue Type: Test > Components: tests > Affects Versions: 1.13.0, 1.14.0 > Reporter: Jens Deppe > Assignee: Kirk Lund > Priority: Major > Labels: pull-request-available > > https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-support-1-13-main/jobs/DistributedTestOpenJDK8/builds/24 > {noformat} > org.apache.geode.test.dunit.tests.AsyncInvocationTimeoutDistributedTest > > get_callable_timeout_includesStackTraceAsCause FAILED > java.lang.AssertionError: > Expecting message to be: > <"Stack trace for vm-0 thread-32"> > but was: > <"Stack trace for vm-0 thread-33"> > Throwable that failed the check: > org.apache.geode.test.dunit.internal.StackTrace: Stack trace for vm-0 > thread-33 > at sun.misc.Unsafe.park(Native Method) > at > java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) > at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277) > at > org.apache.geode.test.dunit.tests.AsyncInvocationTimeoutDistributedTest.lambda$get_callable_timeout_includesStackTraceAsCause$c2252e51$1(AsyncInvocationTimeoutDistributedTest.java:109) > at > org.apache.geode.test.dunit.tests.AsyncInvocationTimeoutDistributedTest$$Lambda$36/681142003.call(Unknown > Source) > at > org.apache.geode.test.dunit.internal.IdentifiableCallable.call(IdentifiableCallable.java:41) > 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 > org.apache.geode.test.dunit.internal.MethodInvoker.executeObject(MethodInvoker.java:123) > at > org.apache.geode.test.dunit.internal.RemoteDUnitVM.executeMethodOnObject(RemoteDUnitVM.java:78) > 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) > at sun.rmi.transport.Transport$1.run(Transport.java:200) > at sun.rmi.transport.Transport$1.run(Transport.java:197) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:196) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$15/1238667039.run(Unknown > Source) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > at > org.apache.geode.test.dunit.tests.AsyncInvocationTimeoutDistributedTest.get_callable_timeout_includesStackTraceAsCause(AsyncInvocationTimeoutDistributedTest.java:124) > {noformat} > =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Test Results URI > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > http://files.apachegeode-ci.info/builds/apache-support-1-13-main/1.13.1-build.0380/test-results/distributedTest/1603276549/ > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Test report artifacts from this job are available at: > http://files.apachegeode-ci.info/builds/apache-support-1-13-main/1.13.1-build.0380/test-artifacts/1603276549/distributedtestfiles-OpenJDK8-1.13.1-build.0380.tgz -- This message was sent by Atlassian Jira (v8.3.4#803005)