apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.44k stars 3.23k forks source link

[Enhancement] decrease FE warn log when client use conn pool and close channel #23309

Open CHzxp opened 1 year ago

CHzxp commented 1 year ago

Search before asking

Description

In many scenarios, clients use connection pools to access Doris . By tcp dump, it is found that each client sends sql to the service with a temporary network port. After sending sql, it will send a FIN message which size is 0 to FE server,when the server recive the FIN message, FE think that the client has closed the channel and print lots of warn logs. However, if a large number of clients frequently send sql and send FIN, FE will print a large number of warn logs. I think this is unreasonable, because this is a normal client disconnection, and printing a large number of warn logs will cause Let users doubt whether the service status is normal, so I suggest lowering the warn log level, because I think it is a normal phenomenon for the client to close the channel, and there should be no large number of alarms.

Solution

No response

Are you willing to submit PR?

Code of Conduct

CHzxp commented 1 year ago

this is the tcp dump content

fe-tcpdump
CHzxp commented 1 year ago

this is the fe log fe-log