github-advanced-security[bot] commented on code in PR #18687:
URL: https://github.com/apache/druid/pull/18687#discussion_r2459836176
##########
server/src/main/java/org/apache/druid/segment/loading/SegmentLoaderConfig.java:
##########
@@ -84,11 +94,24 @@
return locations;
}
+ /**
+ * @deprecated Use {@link #getStartupCacheLoadStrategy()} instead.
+ * Removal of this method in the future will requires a change in {@link
#getStartupCacheLoadStrategy()}
+ * to default to {@link LoadAllEagerlyStrategy#STRATEGY_NAME} when {@link
#startupLoadStrategy} is null.
+ */
+ @Deprecated
public boolean isLazyLoadOnStart()
{
return lazyLoadOnStart;
}
+ public HistoricalStartupCacheLoadStrategy getStartupCacheLoadStrategy()
+ {
+ return startupLoadStrategy == null
+ ? isLazyLoadOnStart() ? new LoadAllLazilyStrategy() : new
LoadAllEagerlyStrategy()
Review Comment:
## Deprecated method or constructor invocation
Invoking [SegmentLoaderConfig.isLazyLoadOnStart](1) should be avoided
because it has been deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/10518)
--
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]