Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukang-Lian committed Nov 25, 2024
1 parent 3c8d752 commit 74f2c90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ private Long getCachedBackend(String cluster, long tableId) {
return null;
}
Backend backend = Env.getCurrentSystemInfo().getBackend(backendId);
if (backend != null && backend.isActive() && !backend.isDecommissioned()) {
if (backend != null && backend.isAlive() && !backend.isDecommissioned()) {
return backend.getId();
} else {
tableToBeMap.remove(encode(cluster, tableId));
Expand All @@ -353,7 +353,7 @@ private Long getRandomBackend(String cluster, long tableId, List<Backend> backen
OlapTable table = (OlapTable) Env.getCurrentEnv().getInternalCatalog().getTableByTableId(tableId);
Collections.shuffle(backends);
for (Backend backend : backends) {
if (backend.isActive() && !backend.isDecommissioned()) {
if (backend.isAlive() && !backend.isDecommissioned()) {
tableToBeMap.put(encode(cluster, tableId), backend.getId());
tableToPressureMap.put(tableId,
new SlidingWindowCounter(table.getGroupCommitIntervalMs() / 1000 + 1));
Expand Down

0 comments on commit 74f2c90

Please sign in to comment.