mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
下线应用的时候 判断先下线topic
This commit is contained in:
committed by
PengShuaixin
parent
22a513ba22
commit
357c496aad
@@ -25,6 +25,9 @@ public enum ResultStatus {
|
||||
CHANGE_ZOOKEEPER_FORBIDDEN(1405, "change zookeeper forbidden"),
|
||||
|
||||
|
||||
APP_OFFLINE_FORBIDDEN(1406, "先下线topic,才能下线应用~"),
|
||||
|
||||
|
||||
TOPIC_OPERATION_PARAM_NULL_POINTER(1450, "参数错误"),
|
||||
TOPIC_OPERATION_PARTITION_NUM_ILLEGAL(1451, "分区数错误"),
|
||||
TOPIC_OPERATION_BROKER_NUM_NOT_ENOUGH(1452, "Broker数不足错误"),
|
||||
|
||||
@@ -95,7 +95,7 @@ public class DeleteAppOrder extends AbstractAppOrder {
|
||||
// 判断app是否对topic有权限
|
||||
List<AuthorityDO> authorityList = authorityService.getAuthority(orderAppExtension.getAppId());
|
||||
if (!ValidateUtils.isEmptyList(authorityList)) {
|
||||
return ResultStatus.OPERATION_FORBIDDEN;
|
||||
return ResultStatus.APP_OFFLINE_FORBIDDEN;
|
||||
}
|
||||
if (appService.deleteApp(appDO, userName) > 0) {
|
||||
return ResultStatus.SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user