[ https://issues.apache.org/jira/browse/IGNITE-21102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17800481#comment-17800481 ]
Oleg Valuyskiy commented on IGNITE-21102: ----------------------------------------- [~nizhikov], please review my changes. The ‘ClusterState’ property has been added to the ‘BaseLineTaskResult’ class; this property is now used to indicate the state of a cluster in the ‘AbstractBaselineCommand#printResult’ method – instead of the ‘active/inactive’ flag. > Incorrect cluster state output for ACTIVE_READ_ONLY in --baseline > ----------------------------------------------------------------- > > Key: IGNITE-21102 > URL: https://issues.apache.org/jira/browse/IGNITE-21102 > Project: Ignite > Issue Type: Bug > Reporter: Julia Bakulina > Assignee: Oleg Valuyskiy > Priority: Major > Labels: ise > Time Spent: 10m > Remaining Estimate: 0h > > Incorrect cluster state output for ACTIVE_READ_ONLY in --baseline. > org.apache.ignite.internal.commandline.BaselineCommand#baselinePrint0 > {code:java} > logger.info("Cluster state: " + (res.isActive() ? "active" : > "inactive")); > {code} > org.apache.ignite.cluster.ClusterState#ACTIVE_READ_ONLY > > An example of changing the cluster state: > {code:java} > Command [SET-STATE] started > Arguments: ... --set-state ACTIVE_READ_ONLY > -------------------------------------------------------------------------------- > Cluster state changed to ACTIVE_READ_ONLY > Command [SET-STATE] finished with code: 0 {code} > Cluster state in control.sh --baseline > {code:java} > Command [BASELINE] started > Arguments: ... --baseline > -------------------------------------------------------------------------------- > Cluster state: active > Current topology version: 1 > Baseline auto adjustment disabled:... > Current topology version: 1 (...) > Baseline nodes: > ... > -------------------------------------------------------------------------------- > Number of baseline nodes: 1 > Other nodes not found. > Command [BASELINE] finished with code: 0 {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)