Skip to content

Commit

Permalink
DRILL-8468: Drill doesn't perform drill.exec.storage.action_on_plugin…
Browse files Browse the repository at this point in the history
…s_override_file action (#2859)
  • Loading branch information
rymarm authored Jan 3, 2024
1 parent 0f71146 commit 9c591b4
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,14 @@ private void initStore() {
try {
for (ConnectorLocator locator : locators) {
StoragePlugins locatorPlugins = locator.bootstrapPlugins();
if (locatorPlugins != null) {
bootstrapPlugins.putAll(locatorPlugins);
}
bootstrapPlugins.putAll(locatorPlugins);
}
} catch (IOException e) {
throw new IllegalStateException(
"Failure initializing the plugin store. Drillbit exiting.", e);
}
pluginStore.putAll(bootstrapPlugins);
locators.stream().forEach(loc -> loc.onUpgrade());
locators.forEach(ConnectorLocator::onUpgrade);
}

/**
Expand All @@ -311,9 +309,7 @@ private void upgradeStore() {
StoragePlugins upgraded = new StoragePlugins();
for (ConnectorLocator locator : locators) {
StoragePlugins locatorPlugins = locator.updatedPlugins();
if (upgraded != null) {
upgraded.putAll(locatorPlugins);
}
upgraded.putAll(locatorPlugins);
}
if (upgraded.isEmpty()) {
return;
Expand All @@ -325,6 +321,7 @@ private void upgradeStore() {
}
pluginStore.put(newPlugin.getKey(), newPlugin.getValue());
}
locators.forEach(ConnectorLocator::onUpgrade);
}

/**
Expand Down

0 comments on commit 9c591b4

Please sign in to comment.