You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/02/14 17:38:37 UTC

[GitHub] [pinot] dongxiaoman edited a comment on pull request #8193: Enable service discovery in controller too

dongxiaoman edited a comment on pull request #8193:
URL: https://github.com/apache/pinot/pull/8193#issuecomment-1039359232


   
   
   
   >  @richardstartin the discovery is only tried on the class written in `META-INF/hk2-locator/default` file. In my example the file contains `[org.apache.pinot.broker.write.api.context.WriteApiContextProvider]S`. The file is written automatically for the class tagged with `@service` tag.Based on code reading, it reads from that file and try to load it. There is no "scan blindly" in place, so it should be a fixed small cost.
   Strictly speaking, this feature is not "AutoDiscovery", it is something "Loading-In-RunTime-with-Specified-Class-Name-in Resource"


-- 
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@pinot.apache.org

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



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