sergey-chugunov-1985 commented on code in PR #12460:
URL: https://github.com/apache/ignite/pull/12460#discussion_r2460382759
##########
modules/zookeeper/src/main/java/org/apache/ignite/spi/discovery/zk/ZookeeperDiscoverySpi.java:
##########
@@ -527,7 +526,7 @@ private ZookeeperClusterNode initLocalNode() {
ZookeeperClusterNode locNode = new ZookeeperClusterNode(
cfg.getNodeId(),
- getString(IGNITE_DATA_CENTER_ID),
+
(String)((IgniteEx)ignite).context().nodeAttributes().get(ATTR_DATA_CENTER_ID),
Review Comment:
```suggestion
//TODO remove usage of internal API when an alternative from
public API is available
(String)((IgniteEx)ignite).context().nodeAttributes().get(ATTR_DATA_CENTER_ID),
```
##########
modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java:
##########
@@ -1170,7 +1169,7 @@ protected void initLocalNode(int srvPort, boolean
addExtAddrAttr) {
locNode = new TcpDiscoveryNode(
ignite.configuration().getNodeId(),
- getString(IGNITE_DATA_CENTER_ID),
+
(String)((IgniteEx)ignite).context().nodeAttributes().get(ATTR_DATA_CENTER_ID),
Review Comment:
```suggestion
//TODO remove usage of internal API when an alternative from
public API is available
(String)((IgniteEx)ignite).context().nodeAttributes().get(ATTR_DATA_CENTER_ID),
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]