Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: drake_wang <[email protected]>
  • Loading branch information
wxl24life committed Sep 25, 2024
1 parent bc20b06 commit 4d986dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions fe/fe-core/src/main/java/com/starrocks/http/HttpServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
import com.starrocks.metric.GaugeMetric;
import com.starrocks.metric.GaugeMetricImpl;
import com.starrocks.metric.Metric;
import com.starrocks.server.RunMode;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
Expand Down Expand Up @@ -199,8 +200,9 @@ private void registerActions() throws IllegalArgException {
// for stop FE
StopFeAction.registerAction(controller);
ExecuteSqlAction.registerAction(controller);
StarManagerHttpServiceAction.registerAction(controller);

if (RunMode.isSharedDataMode()) {
StarManagerHttpServiceAction.registerAction(controller);
}
// meta service action
File imageDir = MetaHelper.getLeaderImageDir();
ImageAction.registerAction(controller, imageDir);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static void registerAction(ActionController controller) throws IllegalArg

controller.registerHandler(HttpMethod.POST,
"/api/v1/starmgr/service/{" + SERVICE + "}/shardgroup/{" + ID + "}/removereplicas", action);
// rebalance all replicas
// balance all replicas
controller.registerHandler(HttpMethod.POST,
"/api/v1/starmgr/service/{" + SERVICE + "}/rebalance", action);
}
Expand All @@ -87,7 +87,7 @@ public void executeWithoutPassword(BaseRequest request, BaseResponse response)
response.setContentType(httpResponse.headers().get(HttpHeaderNames.CONTENT_TYPE));
writeResponse(request, response, httpResponse.status());
} else {
throw new DdlException("Internal Error");
throw new DdlException("Failed to access star manager's http service");
}
}
}

0 comments on commit 4d986dc

Please sign in to comment.