HoustonPutman commented on code in PR #1765:
URL: https://github.com/apache/solr/pull/1765#discussion_r1258715694


##########
solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java:
##########
@@ -226,6 +229,21 @@ public void init(ServletContext servletContext) {
         StartupLoggingUtils.changeLogLevel(logLevel);
       }
 
+      // Do initial logs for experimental Lucene classes.
+      // TODO: Use "MethodHandles.lookup().ensureClassInitialized()" instead 
of "Class.forName()"
+      //   once JDK 15+ is mandatory
+      Stream.of(MMapDirectory.class, VectorUtil.class)
+          .forEach(
+              cls -> {
+                try {
+                  Class.forName(cls.getName());
+                } catch (ReflectiveOperationException re) {
+                  throw new SolrException(
+                      ErrorCode.SERVER_ERROR, "Could not load Lucene class: " 
+ cls.getName());
+                }
+              });
+      VectorUtil.dotProduct(new byte[0], new byte[0]);

Review Comment:
   My bad, I thought I had deleted that. Will remove.



-- 
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: issues-unsubscr...@solr.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to