Kirill Tkalenko created IGNITE-23543:
----------------------------------------
Summary: Add validation of local and distributed system properties
value
Key: IGNITE-23543
URL: https://issues.apache.org/jira/browse/IGNITE-23543
Project: Ignite
Issue Type: Improvement
Reporter: Kirill Tkalenko
Assignee: Kirill Tkalenko
Fix For: 3.0
IGNITE-23504 added a mechanism for working with local and distributed system
properties via an internal configuration framework. As their use showed, it
would be useful to add value validators so that the user could immediately see
what he did wrong.
For example, the user set the property
"*metastorageCompactionDataAvailabilityTime*", which is expected to be an
integer, but he mistakenly wrote it as a string or accidentally added a letter.
It would be bad if the component that reads this property dropped the node. We
can get around this, but the user will have to look at the logs to understand
that he made a mistake, which cannot be inconvenient or timely.
Therefore, I think it would be great to make a validator for the set system
properties.
Since system properties are a simple named list, then an arbitrary validator
cannot be added, since in the scheme this is essentially a string -> string. It
will be necessary to come up with a common mechanism for different modules.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)