apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.35k stars 8.78k forks source link

when order-server debug stop, it reports error #1773

Closed 87048824 closed 4 years ago

87048824 commented 5 years ago

Ⅰ. Issue Description

I run the example of springcloud-eureka-feign-mybatis-seata example。 When order-server debug stop, it reports error

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

2019-10-15 16:43:15.483  INFO 12396 --- [freshExecutor-0] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-10-15 16:43:15.484  INFO 12396 --- [freshExecutor-0] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@6a1b7072
2019-10-15 16:43:15.844  INFO 12396 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : will connect to 192.168.96.240:8091
2019-10-15 16:43:15.845  INFO 12396 --- [imeoutChecker_1] i.s.core.rpc.netty.NettyPoolableFactory  : NettyPool create channel to transactionRole:TMROLE,address:192.168.96.240:8091,msg:< RegisterTMRequest{applicationId='order-server', transactionServiceGroup='fsp_tx_group'} >
2019-10-15 16:43:15.876 ERROR 12396 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : 0304

io.seata.common.exception.FrameworkException: can not connect to services-server.
    at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:195) ~[seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:60) ~[seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:35) ~[seata-all-0.8.0.jar:0.8.0]
    at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220) ~[commons-pool-1.6.jar:1.6]
    at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:203) [seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:102) [seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:171) [seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.AbstractRpcRemotingClient$1.run(AbstractRpcRemotingClient.java:113) [seata-all-0.8.0.jar:0.8.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_131]
    at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308) [na:1.8.0_131]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) [na:1.8.0_131]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_131]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.39.Final.jar:4.1.39.Final]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
Caused by: io.seata.common.exception.FrameworkException: connect failed, can not connect to services-server.
    at io.seata.core.rpc.netty.RpcClientBootstrap.getNewChannel(RpcClientBootstrap.java:190) ~[seata-all-0.8.0.jar:0.8.0]
    ... 16 common frames omitted
Caused by: java.lang.IllegalStateException: executor not accepting a task
    at io.netty.resolver.AddressResolverGroup.getResolver(AddressResolverGroup.java:60) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:196) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.bootstrap.Bootstrap.access$000(Bootstrap.java:50) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.bootstrap.Bootstrap$1.operationComplete(Bootstrap.java:184) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.bootstrap.Bootstrap$1.operationComplete(Bootstrap.java:170) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:500) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:474) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:413) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:538) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:527) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:98) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:84) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetSuccess(AbstractChannel.java:982) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:505) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:416) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:475) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:163) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:416) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:515) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-all-4.1.39.Final.jar:4.1.39.Final]
    ... 2 common frames omitted

2019-10-15 16:43:15.878 ERROR 12396 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : 0101

io.seata.common.exception.FrameworkException: can not register RM,err:can not connect to services-server.
    at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:207) ~[seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:102) ~[seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:171) ~[seata-all-0.8.0.jar:0.8.0]
    at io.seata.core.rpc.netty.AbstractRpcRemotingClient$1.run(AbstractRpcRemotingClient.java:113) [seata-all-0.8.0.jar:0.8.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_131]
    at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308) [na:1.8.0_131]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) [na:1.8.0_131]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_131]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.39.Final.jar:4.1.39.Final]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]

2019-10-15 16:43:17.500  INFO 12396 --- [       Thread-4] com.netflix.discovery.DiscoveryClient    : Unregistering ...
2019-10-15 16:43:17.519  INFO 12396 --- [       Thread-4] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_ORDER-SERVER/CDPPC081375.CDP.COM:order-server:8080 - deregister  status: 200
2019-10-15 16:43:17.548  INFO 12396 --- [       Thread-4] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

No errors

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

zjinlei commented 5 years ago

Heartbeat monitoring, your service is debugged, the server can't communicate with the client.

87048824 commented 5 years ago

When I stoped the debug,it reports error. If no reports errors,It looks better。