abhishekrb19 commented on code in PR #18064:
URL: https://github.com/apache/druid/pull/18064#discussion_r2136131078
##########
server/src/main/java/org/apache/druid/query/lookup/LookupReferencesManager.java:
##########
@@ -282,6 +282,13 @@ public void stop()
public void add(String lookupName, LookupExtractorFactoryContainer
lookupExtractorFactoryContainer)
{
Preconditions.checkState(lifecycleLock.awaitStarted(1,
TimeUnit.MILLISECONDS));
+ LookupLoadingSpec lookupLoadingSpec =
lookupListeningAnnouncerConfig.getLookupLoadingSpec();
+ if (lookupLoadingSpec.getMode() == LookupLoadingSpec.Mode.NONE ||
+ (lookupLoadingSpec.getMode() == LookupLoadingSpec.Mode.ONLY_REQUIRED
+ && !lookupLoadingSpec.getLookupsToLoad().contains(lookupName))) {
+ LOG.warn("Skipping notice to add lookup [%s] : current lookup loading
mode does not allow it.", lookupName);
Review Comment:
a drive-by-comment: an `info` log would be more appropriate here, since this
is expected behavior when the user sets it.
```suggestion
LOG.info("Skipping notice to add lookup[%s] since current lookup
loading mode[%s] does not allow it.", lookupName, lookupLoadingSpec.getMode());
```
--
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]