You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/07/22 10:22:17 UTC

[GitHub] [skywalking] janecms opened a new issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

janecms opened a new issue #5150:
URL: https://github.com/apache/skywalking/issues/5150


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [✔️ ] Bug
   
   ___
   ### Bug
   SkyWalking:8.0.1
   OS: MAC/Linux
   JRE: OpenJDK 1.8.0_242/1.8.0_252
   
   - Which company or project?
    spring cloud gateway 2.1.5
   
   - What happen?
   This problem was not found in the test environment, so I think it may have something to do with concurrency。
   View the Agent local log file。The log content contains :
   `
   **java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.**
           at org.apache.skywalking.apm.agent.core.context.trace.AbstractTracingSpan.prepareForAsync(AbstractTracingSpan.java:301)
           at org.apache.skywalking.apm.plugin.spring.cloud.gateway.v21x.HttpClientFinalizerSendInterceptor.beforeMethod(HttpClientFinalizerSendInterceptor.java:45)
           at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInterWithOverrideArgs.intercept(InstMethodsInterWithOverrideArgs.java:75)
           at reactor.netty.http.client.HttpClientFinalizer.send(HttpClientFinalizer.java)
           at reactor.netty.http.client.HttpClientFinalizer.send(HttpClientFinalizer.java:44)
           at org.springframework.cloud.gateway.filter.NettyRoutingFilter.filter$original$zQOMXuoX(NettyRoutingFilter.java:128)
           at org.springframework.cloud.gateway.filter.NettyRoutingFilter.filter$original$zQOMXuoX$accessor$17xErV0d(NettyRoutingFilter.java)
           at org.springframework.cloud.gateway.filter.NettyRoutingFilter$auxiliary$JpE5vsrn.call(Unknown Source)
           at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInterWithOverrideArgs.intercept(InstMethodsInterWithOverrideArgs.java:85)
           at org.springframework.cloud.gateway.filter.NettyRoutingFilter.filter(NettyRoutingFilter.java)
           at org.springframework.cloud.gateway.handler.FilteringWebHandler$GatewayFilterAdapter.filter(FilteringWebHandler.java:138)
           at org.springframework.cloud.gateway.filter.OrderedGatewayFilter.filter(OrderedGatewayFilter.java:44)
           at org.springframework.cloud.gateway.handler.FilteringWebHandler$DefaultGatewayFilterChain.lambda$filter$0(FilteringWebHandler.java:118)
           at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:44)
           at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
           at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
           at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
   `
   other log in our test env.
   `
   WARN 2020-07-20 17:29:07:495 reactor-http-epoll-3 TracingContext : More than 300 spans required to create
   java.lang.RuntimeException: Shadow tracing context. Thread dump
           at org.apache.skywalking.apm.agent.core.context.TracingContext.isLimitMechanismWorking(TracingContext.java:562)
           at org.apache.skywalking.apm.agent.core.context.TracingContext.createExitSpan(TracingContext.java:323)
           at org.apache.skywalking.apm.agent.core.context.ContextManager.createExitSpan(ContextManager.java:119)
           at org.apache.skywalking.apm.plugin.jedis.v2.JedisMethodInterceptor.beforeMethod(JedisMethodInterceptor.java:38)
   `
   
   ___
   ### Requirement or improvement
   - I found the issue (5144) (https://github.com/apache/skywalking/issues/5144),The two mistakes are similar. I don't know if they are one


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] janecms commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
janecms commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-664791359






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] Glenrun commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
Glenrun commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-663341122


   I also encountered this issue. Is there any time line to fix? @wu-sheng


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-662381670


   Duplicate. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] ascrutae commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
ascrutae commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-665553803


   @Glenrun that error logs that you display maybe cause by gateway plugin,  Cloud you give me the demo to reproduce this issue? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] janecms commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
janecms commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-662779466


   @wu-sheng ,can i tell me  how to solve this problem now,Version 8.1.0 is now a snapshot version。
   
   Please let me know.
   
   Thanks
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5150:
URL: https://github.com/apache/skywalking/issues/5150


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] janecms edited a comment on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
janecms edited a comment on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-662779466


   @wu-sheng ,can you tell me  how to solve this problem now,Version 8.1.0 is now a snapshot version。
   
   Please let me know.
   
   Thanks
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-664796690


   This error is totally different case. which plugin causes this need your local work. Check why span can't be closed as expected. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5150: Encounters an error “java.lang.RuntimeException: Prepare for async repeatedly. Span is already in async mode.”

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5150:
URL: https://github.com/apache/skywalking/issues/5150#issuecomment-663985206


   Read #5177


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org