Skip to content

Commit f08c16d

Browse files
committed
Fix merge conflicts mistakes: Enable updating cluster when spark master is stable
1 parent 8b33485 commit f08c16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils/hdinsight-node-common/src/com/microsoft/azure/sparkserverless/serverexplore/sparkserverlessnode/SparkServerlessClusterNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public SparkServerlessClusterNode(@NotNull Node parent,
6767
protected void refreshItems() throws AzureCmdException {
6868
try {
6969
cluster.get().toBlocking().singleOrDefault(cluster);
70-
if (Optional.ofNullable(cluster.getWorkerState()).orElse("")
70+
if (Optional.ofNullable(cluster.getMasterState()).orElse("")
7171
.equals(SparkItemGroupState.STABLE.toString())) {
7272
addAction("Update", new SparkServerlessUpdateAction(
7373
this, cluster, SparkServerlessClusterOps.getInstance().getUpdateAction()));

0 commit comments

Comments
 (0)