arina-ielchiieva commented on a change in pull request #2010: DRILL-7620: Fix
plugin mutability issues
URL: https://github.com/apache/drill/pull/2010#discussion_r391469634
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java
##########
@@ -233,6 +233,17 @@ private void loadIntrinsicPlugins() throws
PluginException {
continue;
}
for (StoragePlugin sysPlugin : intrinsicPlugins) {
+ // Enforce lower case names. Since the name of a system plugin
+ // is "hard coded", we can't adjust it if it is not already
+ // lower case. All we can do is fail to tell the developer that
+ // something is wrong.
+ String origName = sysPlugin.getName();
+ String lcName = sysPlugin.getName().toLowerCase();
+ if (!origName.equals(lcName)) {
+ throw new IllegalStateException(String.format(
+ "Plugin names must be lower case. System plugin name is not
lower case: %s",
Review comment:
```suggestion
"Plugin names must be in lower case. System plugin name is not
lower case: %s",
```
----------------------------------------------------------------
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