You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/07/09 05:30:44 UTC

[GitHub] [druid] kaijianding opened a new issue #11425: Why SqlResource is not LazySingleton like BrokerQueryResource?

kaijianding opened a new issue #11425:
URL: https://github.com/apache/druid/issues/11425


   Occasionally, I noticed  SqlResource's constructor is called many times due to SqlResource is not LazySingleton.
   But BrokerQueryResource is LazySingleton.
   In CliBroker: `binder.bind(BrokerQueryResource.class).in(LazySingleton.class);Jerseys.addResource(binder, BrokerQueryResource.class);`
   In SqlHttpModule: only `Jerseys.addResource(binder, SqlResource.class);`
   
   Any reason why SqlResource can't be LazySingleton?


-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org