Error: Encountered non-retryable error during query :: caused by :: operation was interrupted" errName:ClientDisconnect errCode:279

mongs version: 4.2.0
taskExecutorPoolSize=1,
ShardingTaskExecutorPoolMaxConnecting=2,
ShardingTaskExecutorPoolMinSize=1
Client set socketTimeout=10
I got a lot of errors as below, even after restart mongos.Socket connections from client to mongos increase, but connections from mongos to sharding server keeps.

operation was interrupted because a client disconnected
errMsg:"Encountered non-retryable error during query :: caused by :: operation was interrupted" errName:ClientDisconnect errCode:279
2021-08-12T11:58:58.690+0800 I  CONNPOOL [TaskExecutorPool-0] Ending connection to host 10.10.12.137:27002 due to bad connection status: InternalError: Connection is in an unknown state; 16 connections to that host remain open
2021-08-12T11:59:09.693+0800 I  NETWORK  [conn11062415] Marking host 10.10.12.137:27002 as failed :: caused by :: NetworkInterfaceExceededTimeLimit: Couldn't get a connection within the time limit

I want to know

  • Is client disconnect will cause mongos ending client to sharding server?
  • Mongos increase pool too slow to handle request from client, so client can’t receive msg in socketTimeout. I can add taskExecutorPoolSize and ShardingTaskExecutorPoolMaxConnecting to avoid it.Is this right?

I am new to mongodb, and may describe not very clear. If other info is needed to solove it, please tell me.

socketTimeout is 10 seconds, sorry to mistake it .