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:
[email protected]


Reply via email to