DRILL-8502: some boot options with drill.exec.options prefix are missed in configuration options #2923
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DRILL-8502: Some boot options with drill.exec.options prefix are missed in configuration options
Description
This PR removes 3 unused properties and 1 duplicate property and makes
drill.exec.options.drill.exec.testing.controls
visible all the time, not only when assertions mode is enabled.During an investigation of the Drill configuration system, I noticed Drill has several system options(
drill.exec.options.*
properties), which are absent inSystemOptionManager
, but present inDrillConfig
:I've analyzed the Drill code and concluded:
drill.exec.options.drill.exec.testing.controls
-is set to empty indrill-module.conf
injava-exec
jar. This property becomes available only when an assertions mode is enabled. All the other time this option is never used and should not be initialized. Even with enabled assertions mode anull
value is acceptable.DRILLBIT_CONTROLS_VALIDATOR
along with its default value is added toSystemOptionManager
only when an assertions mode is enabled, but all the other time,drill.exec.options.drill.exec.testing.controls
is present only inDrillConfig
. I think it's a little confusing, that a system option may be present, but may not. So I reverted a change that adds logic of adding the validator when the assertions mode is enabled. Commit which brings this logic: 2af6340#diff-f17deea2cf176841c1056a79613481f2b9c42f29eaa151958eaabf14169d3e24R118-R120drill.exec.options.exec.hashagg.max_batches_in_memory
- is set to 65536 indrill-module.conf
injava-exec
jar. This property is never used.drill.exec.options.exec.hashagg.num_rows_in_batch
- is set to 128 indrill-module.conf
injava-exec
jar. This property is never used.drill.exec.options.exec.hashjoin.mem_limit
- is set to 0 indrill-module.conf
injava-exec
jar. This property is never used.drill.exec.options.exec.return_result_set_for_ddl
- is set totrue
. This property is probably a typo ofdrill.exec.options.exec.query.return_result_set_for_ddl
.