Anton Vinogradov created IGNITE-29360:
-----------------------------------------
Summary: ignite.sh -systemProps misses Calcite properties when
ZooKeeper discovery is on the class path
Key: IGNITE-29360
URL: https://issues.apache.org/jira/browse/IGNITE-29360
Project: Ignite
Issue Type: Bug
Reporter: Anton Vinogradov
{{ignite.sh -systemProps}} does not print the system properties of the Calcite
engine when ignite-zookeeper is on the class path.
h3. Cause
The static block of {{CommandLineStartup}} adds the classes of optional modules
to {{PROPS_CLS}} inside one {{try}}. When {{ZookeeperDiscoveryImpl}} is on the
class path, the block also loads
{{org.apache.ignite.spi.discovery.tcp.ipfinder.zk.TcpDiscoveryZookeeperIpFinder}}.
That class moved to ignite-extensions in IGNITE-16182, so {{Class.forName}}
throws {{ClassNotFoundException}}. The block catches it and never checks
{{CalciteQueryProcessor}}, so two properties are not printed:
* {{IGNITE_CALCITE_PLANNER_TIMEOUT}};
* {{IGNITE_CALCITE_USE_QUERY_BLOCKING_TASK_EXECUTOR}}.
The block also checks
{{org.apache.ignite.internal.processors.query.h2.database.H2Tree}}. This class
does not exist since IGNITE-13056, so that check never adds a class.
h3. Fix
Check each optional module on its own, so that a missing class of one module
does not hide the properties of another. Remove the classes that no longer
exist.
h3. Effect on the public behavior check
The *Public behavior changes* check of IGNITE-29351 compares what {{ignite.sh
-systemProps}} prints with every module on the class path. Until this bug is
fixed, the check does not compare the two Calcite properties: a PR that changes
their defaults or removes them passes without an RFC. If the fix lands after
the check, the PR with the fix shows the two properties as added.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)