agozhiy commented on a change in pull request #1833: DRILL-6961: Handle 
exceptions during queries to information_schema
URL: https://github.com/apache/drill/pull/1833#discussion_r311020905
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java
 ##########
 @@ -581,7 +581,11 @@ public void registerSchemas(SchemaConfig schemaConfig, 
SchemaPlus parent) throws
 
         // finally register schemas with the refreshed plugins
         for (StoragePlugin plugin : enabledPlugins.plugins()) {
-          plugin.registerSchemas(schemaConfig, parent);
+          try {
+            plugin.registerSchemas(schemaConfig, parent);
+          } catch (Exception e) {
+            logger.warn("Error during `{}` schema initialization: {}", 
plugin.getName(), e.getMessage());
 
 Review comment:
   Done.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to