You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Paul Rogers (Jira)" <ji...@apache.org> on 2020/02/27 03:05:00 UTC

[jira] [Updated] (DRILL-7612) Modify the ExcelFormatConfig, etc. immutable

     [ https://issues.apache.org/jira/browse/DRILL-7612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Rogers updated DRILL-7612:
-------------------------------
    Summary: Modify the ExcelFormatConfig, etc. immutable  (was: Modify the ExcelFormatConfig immutable)

> Modify the ExcelFormatConfig, etc. immutable
> --------------------------------------------
>
>                 Key: DRILL-7612
>                 URL: https://issues.apache.org/jira/browse/DRILL-7612
>             Project: Apache Drill
>          Issue Type: Improvement
>            Reporter: Paul Rogers
>            Priority: Major
>
> See note in the {{ExcelFormatConfig}} class. The class is designed with mutable fields. However, if any of the fields are actually changed while the excel reader pluguin is active, the result is undefined. This is true, by the way, for all storage and plugin configs.
> Would be better for the class to be immutable with {{final}} fields. By doing this it becomes impossible for uninformed code to grab a config from the plugin registry, modify it, and put it back, causing the registry to become confused due to its value-based config map.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)