Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: gengjun-git <[email protected]>
  • Loading branch information
gengjun-git committed Dec 13, 2024
1 parent 7ae6f24 commit 40a1c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@

package com.starrocks.http.rest;

import com.starrocks.common.DdlException;
import com.starrocks.http.ActionController;
import com.starrocks.http.BaseRequest;
import com.starrocks.http.BaseResponse;
import com.starrocks.http.IllegalArgException;
import com.starrocks.persist.gson.GsonUtils;
import com.starrocks.privilege.AccessDeniedException;
import com.starrocks.server.GlobalStateMgr;
import com.starrocks.warehouse.IdleStatus;
import io.netty.handler.codec.http.HttpMethod;
Expand All @@ -36,7 +34,7 @@ public static void registerAction(ActionController controller) throws IllegalArg
}

@Override
public void execute(BaseRequest request, BaseResponse response) throws DdlException, AccessDeniedException {
public void execute(BaseRequest request, BaseResponse response) {
IdleStatus idleStatus = GlobalStateMgr.getCurrentState().getWarehouseIdleChecker().getIdleStatus();
String content = GsonUtils.GSON.toJson(idleStatus);
response.getContent().append(content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public void updateJobLastFinishTime(long wId) {
}

public IdleStatus getIdleStatus() {
runAfterCatalogReady();

List<Long> warehouseIds = GlobalStateMgr.getCurrentState().getWarehouseMgr().getAllWarehouseIds();

boolean isClusterIdle = true;
Expand Down

0 comments on commit 40a1c79

Please sign in to comment.