[ server ] [ oss ] -初步完成对象存储部分代码 - 1

This commit is contained in:
zeaslity
2023-02-14 15:28:12 +08:00
parent 601b6a678c
commit 7158183348
11 changed files with 708 additions and 305 deletions

View File

@@ -236,7 +236,8 @@ public class AcceptAgentInitInfo {
// validate serverName
String[] split = serverName.split("-");
if (split.length <= 2 || !ALL_SERVER_CITY_INFO.contains(split[0]) || !ALL_SERVER_ARCH_INFO.contains(split[1])) {
throw new MyRuntimeException(" server name not validated !");
log.error("server info from agent are {}", serverInfoVO);
throw new MyRuntimeException("server name not validated !");
}
String machineIdPrefixSixBytes = String.valueOf(serverInfoVO.getMachineId().toCharArray(), 0, 6);