Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] only use compute node to create cloudnative table #21092

Merged
merged 12 commits into from
Apr 12, 2023
Prev Previous commit
fix bug
Signed-off-by: abc982627271 <liuxuefen@starrocks.com>
  • Loading branch information
abc982627271 committed Apr 12, 2023
commit 5f024e9f7756df4a1164349ccbdf2479d1fc751b
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,11 @@ void buildPartitions(Database db, OlapTable table, List<Partition> partitions) t
} else if (numAliveCNs > 0) {
buildPartitionsSequentially(db.getId(), table, partitions, numReplicas, numAliveCNs);
} else {
throw new DdlException("no alive compute nodes");
if (RunMode.getCurrentRunMode() == RunMode.SHARED_DATA) {
throw new DdlException("no alive compute nodes");
} else {
throw new DdlException("no alive backends");
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ private long getClusterAvailableCapacityB() {
}

public void checkClusterCapacity() throws DdlException {
if (RunMode.getCurrentRunMode() != RunMode.SHARED_DATA) {
if (RunMode.getCurrentRunMode() == RunMode.SHARED_DATA) {
return;
abc982627271 marked this conversation as resolved.
Show resolved Hide resolved
}

Expand Down