github-advanced-security[bot] commented on code in PR #18424:
URL: https://github.com/apache/druid/pull/18424#discussion_r2295165091
##########
server/src/main/java/org/apache/druid/initialization/ServerInjectorBuilder.java:
##########
@@ -118,6 +135,37 @@
return new ExtensionInjectorBuilder(serviceBuilder).build();
}
+ /**
+ * Rough bridge solution for Hadoop indexing that needs server-like Injector
but can't run jetty 12
+ */
+ public Injector buildWithoutJettyModules()
+ {
+ Preconditions.checkNotNull(baseInjector);
+ Preconditions.checkNotNull(nodeRoles);
+
+ Module registerNodeRoleModule = registerNodeRoleModule(nodeRoles);
+
+ // Child injector, with the registered node roles
+ Injector childInjector =
baseInjector.createChildInjector(registerNodeRoleModule);
+
+ // Create the core set of modules shared by all services.
+ // Here and below, the modules are filtered by the load modules list and
+ // the set of roles which this server provides.
+ CoreInjectorBuilder coreBuilder = new CoreInjectorBuilder(childInjector,
nodeRoles).forServerWithoutJetty();
Review Comment:
## Deprecated method or constructor invocation
Invoking [CoreInjectorBuilder.forServerWithoutJetty](1) should be avoided
because it has been deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/10251)
--
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]