wangxj3 commented on issue #15983:
URL: 
https://github.com/apache/dolphinscheduler/issues/15983#issuecomment-2109138599

   > 
![image](https://private-user-images.githubusercontent.com/89766728/330247626-212813ed-ec8e-4886-997d-e475cce3fdc3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU2NTE4OTQsIm5iZiI6MTcxNTY1MTU5NCwicGF0aCI6Ii84OTc2NjcyOC8zMzAyNDc2MjYtMjEyODEzZWQtZWM4ZS00ODg2LTk5N2QtZTQ3NWNjZTNmZGMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE0VDAxNTMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjZTc1YzY0NTg2NDZlNGY5ZmIzMGRhNTRmNTUyZjUwMGZlYWNlMTgxYjhmZGYyNGQyMDYyMjZjZjM2MDY4OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.78CQPToUq-9XUlm7c_MsXSU-vkPweJsWruDpF8i3ng4)
 look at here.the connection is runnig here for many days(I obersevered many 
connections that as same as this).because the channels(a map that store all the 
channels
 ) lose the quote of the channel forever, it can't close because we cann't get 
the channel anymore as the channel losed when channels.put(host,channel) called.
   
   When tasks are concurrent (tasks running on the same worker-server), the 
tasks are A and B. Concurrency occurs when creating channels. 
NettyRemotingClient.createChannel is called. A creates channelA, B creates 
channelB, and A uses channelA to send messages, B uses channelB to send 
messages, but when A closes channel, it takes the channel by host,so get the 
channel of channelB, and channelB is closed. channelA is free.
   
   
当任务出现并发(同一个worker-server运行的任务),任务为A,B,在创建channel的时候出现了并发,调用NettyRemotingClient.createChannel,A创建了channelA,B创建了channelB,A用channelA发送消息,B用channelB发送消息,但是A在关闭的时候根据host拿channel,关闭的是channelB。channelA就游离了。


-- 
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]

Reply via email to