lokidundun commented on code in PR #7783:
URL: https://github.com/apache/incubator-seata/pull/7783#discussion_r2668585289
##########
core/src/main/java/org/apache/seata/core/rpc/netty/AbstractNettyRemotingClient.java:
##########
@@ -96,6 +98,11 @@ public abstract class AbstractNettyRemotingClient extends
AbstractNettyRemoting
protected final Condition mergeCondition = mergeLock.newCondition();
protected volatile boolean isSending = false;
+ private final Runnable reconnectTask;
+ private AtomicBoolean timerStarted = new AtomicBoolean(false);
Review Comment:
ok, I have unifide RM/TM reconnect thread pools into a single static shared
one SHARED_RECONNECT_EXECUTOR (eliminate redundancy), clarified
`timerStarted`'s purpose (controls per-instance task lifecycle, no longer
meaningless)
and retained one reconnect task per entity (RM/TM) as you suggested.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]