Ignite ClusterNode.consistendId() returns 值与配置中定义的值不同

Ignite ClusterNode.consistendId() returns value different from one that is defined in configuration

ClusterNode.consistentId() returns UUID 而不是配置中定义的节点名称 xml

发现spi配置是这样的:

<property name="discoverySpi">
    <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
        <property name="localAddress" value="myNode"/>
        <property name="localPort" value="48800"/>
        <property name="localPortRange" value="1"/>
        <property name="ipFinder">
            <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                <property name="addresses">
                    <list>
                        <value>myNode</value>
                    </list>
                </property>
            </bean>
        </property>
    </bean>
</property>

我还在 xml 中定义了 dataStorageConfiguration 的 dataRegionConfigurations,当我删除这个 属性、ClusterNode.consistentId() returns 127.0.0.1:48800 而不是UUID

我认为这是设计使然。当节点是持久节点时,默认 consistentId 的计算方式与非持久节点不同。

如果要将 consistentId 设置为任何特定值,为什么不明确指定它?