yiguolei commented on code in PR #50939:
URL: https://github.com/apache/doris/pull/50939#discussion_r2094291350


##########
fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlService.java:
##########
@@ -46,22 +46,19 @@ public class DorisFlightSqlService {
 
     public DorisFlightSqlService(int port) {
         BufferAllocator allocator = new RootAllocator();
-        // arrow_flight_token_cache_size less than qe_max_connection to avoid 
`Reach limit of connections`.
         // arrow flight sql is a stateless protocol, connection is usually not 
actively disconnected.
         // bearer token is evict from the cache will unregister ConnectContext.
         this.flightTokenManager = new FlightTokenManagerImpl(
-                Math.min(Config.arrow_flight_token_cache_size, 
Config.qe_max_connection / 2),
-                Config.arrow_flight_token_alive_time);
+                Math.min(Config.arrow_flight_max_connections, 
Config.arrow_flight_token_cache_size),

Review Comment:
   arrow_flight_token_cache_size  这个跟 arrow_flight_max_connections 
之间有没有什么关联关系,比如说一个值必须大于另外一个之类的?



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

Reply via email to