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

Intermittent failures in integration tests #567

Open
2 tasks
safris opened this issue May 10, 2020 · 0 comments · Fixed by #572
Open
2 tasks

Intermittent failures in integration tests #567

safris opened this issue May 10, 2020 · 0 comments · Fixed by #572
Assignees
Labels
bug Something isn't working P2 Priority 2 test

Comments

@safris
Copy link
Collaborator

safris commented May 10, 2020

  • spring-jms

    Received <hello>
    Active span: {traceId:1, spanId:3, parentId:2, operationName:"onMessage"}
    -------> Intercept [SpringJmsMQAgentRule@DefaultMessageListenerContainer-1]: public void org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.onMessage(javax.jms.Message,javax.jms.Session) throws javax.jms.JMSException
    -------> Intercept [ExecutorAgentRule@DefaultMessageListenerContainer-1]: public void java.util.concurrent.ThreadPoolExecutor.execute(java.lang.Runnable)
    ...
    -------> Intercept [ExecutorAgentRule@ActiveMQ Broker[localhost] Scheduler]: public void java.util.concurrent.ThreadPoolExecutor.execute(java.lang.Runnable)
    -------> Intercept [SpringJmsMQAgentRule@DefaultMessageListenerContainer-1]: protected javax.jms.Message org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveMessage(javax.jms.MessageConsumer) throws javax.jms.JMSException
    Spans: [{traceId:1, spanId:2, parentId:0, operationName:"jms-send"}, {traceId:1, spanId:3, parentId:2, operationName:"onMessage"}]
    Span: {traceId:1, spanId:2, parentId:0, operationName:"jms-send"}
      Component: java-jms
      Tags: {component=java-jms, message_bus.destination=queue://mailbox, span.kind=producer}
      Logs: 
    Span: {traceId:1, spanId:3, parentId:2, operationName:"onMessage"}
      Component: spring-jms
      Tags: {span.kind=consumer, component=spring-jms}
      Logs: 
    -------> Intercept [SpringJmsMQAgentRule@DefaultMessageListenerContainer-1]: protected javax.jms.Message org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveMessage(javax.jms.MessageConsumer) throws javax.jms.JMSException
    -------> Intercept [ExecutorAgentRule@DefaultMessageListenerContainer-1]: public void java.util.concurrent.ThreadPoolExecutor.execute(java.lang.Runnable)
    ...
    -------> Intercept [ThreadAgentRule@ActiveMQ VMTransport: vm://localhost#0-2]: public void java.lang.Thread.run()
    -------> Intercept [ThreadAgentRule@ActiveMQ VMTransport: vm://localhost#0-2]: public void java.lang.Thread.run()
    2020-05-09 13:39:06.161  INFO 317 --- [           main] o.a.activemq.broker.TransportConnector   : Connector vm://localhost stopped
    2020-05-09 13:39:06.161  INFO 317 --- [           main] o.apache.activemq.broker.BrokerService   : Apache ActiveMQ 5.15.10 (localhost, ID:3d120d743ff8-37041-1589031483784-0:1) is shutting down
    -------> Intercept [ExecutorAgentRule@RMI TCP Accept-1099]: public void java.util.concurrent.ThreadPoolExecutor.execute(java.lang.Runnable)
    -------> Intercept [FixedDelayAgentRule@main]: public java.util.concurrent.ScheduledFuture java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(java.lang.Runnable,long,long,java.util.concurrent.TimeUnit)
    2020-05-09 13:39:06.197  INFO 317 --- [           main] o.apache.activemq.broker.BrokerService   : Apache ActiveMQ 5.15.10 (localhost, ID:3d120d743ff8-37041-1589031483784-0:1) uptime 1 minute
    2020-05-09 13:39:06.197  INFO 317 --- [           main] o.apache.activemq.broker.BrokerService   : Apache ActiveMQ 5.15.10 (localhost, ID:3d120d743ff8-37041-1589031483784-0:1) is shutdown
    java.lang.reflect.InvocationTargetException
      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.codehaus.mojo.exec.Exec.main(Exec.java:26)
    Caused by: java.lang.AssertionError: 1 spans instead of 2 of java-jms
      at io.opentracing.contrib.specialagent.TestUtil.checkSpan(TestUtil.java:153)
      at io.opentracing.contrib.specialagent.test.spring.jms.SpringJMSITest.main(SpringJMSITest.java:48)
      ... 5 more
    
  • lettuce

    Spans: [{traceId:1, spanId:2, parentId:0, operationName:"CONNECT"}, {traceId:3, spanId:4, parentId:0, operationName:"SET"}, {traceId:5, spanId:6, parentId:0, operationName:"GET"}]
    Span: {traceId:1, spanId:2, parentId:0, operationName:"CONNECT"}
      Component: java-redis
      Tags: {component=java-redis, db.type=redis, span.kind=client, peer.hostname=localhost, peer.port=6379, db.redis.dbIndex=0}
      Logs: 
    Span: {traceId:3, spanId:4, parentId:0, operationName:"SET"}
      Component: java-redis
      Tags: {component=java-redis, db.type=redis, span.kind=client}
      Logs: 
    Span: {traceId:5, spanId:6, parentId:0, operationName:"GET"}
      Component: java-redis
      Tags: {component=java-redis, db.type=redis, span.kind=client}
      Logs: 
    -------> Intercept [ExecutorAgentRule@main]: public void io.netty.util.concurrent.SingleThreadEventExecutor.execute(java.lang.Runnable)
    -------> Intercept [ExecutorAgentRule@lettuce-nioEventLoop-4-1]: public void io.netty.util.concurrent.SingleThreadEventExecutor.execute(java.lang.Runnable)
    ...
    -------> Intercept [ThreadAgentRule@lettuce-eventExecutorLoop-1-36]: public void java.lang.Thread.run()
    -------> Intercept [ExecutorAgentRule@main]: public void io.netty.util.concurrent.GlobalEventExecutor.execute(java.lang.Runnable)
    [ERROR] 3 spans instead of 4 of java-redis
    java.lang.AssertionError: 3 spans instead of 4 of java-redis
      at io.opentracing.contrib.specialagent.TestUtil.checkSpan(TestUtil.java:153)
      at io.opentracing.contrib.specialagent.TestUtil.checkSpan(TestUtil.java:93)
      at io.opentracing.contrib.specialagent.test.lettuce.LettuceITest.main(LettuceITest.java:68)
      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.codehaus.mojo.exec.Exec.main(Exec.java:26)
    
@safris safris added bug Something isn't working test P2 Priority 2 labels May 10, 2020
@safris safris changed the title Intermittent failure in spring-jms integration test Intermittent failures integration tests May 10, 2020
@safris safris changed the title Intermittent failures integration tests Intermittent failures in integration tests May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 Priority 2 test
Projects
None yet
2 participants