epugh commented on a change in pull request #264:
URL: https://github.com/apache/solr/pull/264#discussion_r693484355



##########
File path: 
solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java
##########
@@ -195,7 +223,16 @@ private InputStream readSchemaLocally() {
     InputStream schemaInputStream = null;
     try {
       // Attempt to load the managed schema
-      schemaInputStream = loader.openResource(managedSchemaResourceName);
+      try {
+        schemaInputStream = loader.openResource(managedSchemaResourceName);
+      }
+      catch (IOException e) {
+        //   Attempt to load the managed schema with the legacy name.
+        log.info("The schema is configured as managed, but managed schema 
resource {}  not found - looking for legacy {} instead"

Review comment:
       Will do.




-- 
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]

Reply via email to