vvysotskyi commented on a change in pull request #484: DRILL-4576: Add 
PlannerCallback interface for additional planner initialization.
URL: https://github.com/apache/drill/pull/484#discussion_r304291621
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java
 ##########
 @@ -186,12 +191,15 @@ public void init() throws DrillbitStartupException {
   @Override
   public void addPlugin(String name, StoragePlugin plugin) {
     plugins.put(name, plugin);
+    manuallyAddedPlugins.put(name, 0);
   }
 
   public void deletePlugin(String name) {
     StoragePlugin plugin = plugins.remove(name);
     closePlugin(plugin);
-    pluginSystemTable.delete(name);
+    if(manuallyAddedPlugins.remove(name) == null){
 
 Review comment:
   Is it required for now? Looks like `deletePlugin()` is called in 
`PluginConfigWrapper.deleteFromStorage()` method which checks that 
`StoragePluginConfig` for plugin is present (plugin exists in exist in the 
`PersistentStore`).
   So I think the problem with 
   
   > StoragePluginRegistryImpl which deletes manually added plugins from the 
registry since they don't exist in the PersistentStore
   
   is not actual anymore.

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