Skip to content

Commit da00c8c

Browse files
zengqiaoZQKC
authored andcommitted
还原消费组重置失败的提示文案
1 parent 8b17787 commit da00c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

km-biz/src/main/java/com/xiaojukeji/know/streaming/km/biz/group/impl/GroupManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public Result<Void> resetGroupOffsets(GroupOffsetResetDTO dto, String operator)
209209
}
210210

211211
if (!ConsumerGroupState.EMPTY.equals(description.state()) && !ConsumerGroupState.DEAD.equals(description.state())) {
212-
return Result.buildFromRSAndMsg(ResultStatus.KAFKA_OPERATE_FAILED, String.format("group处于%s, 重置失败(仅Empty情况可重置)", GroupStateEnum.getByRawState(description.state()).getState()));
212+
return Result.buildFromRSAndMsg(ResultStatus.KAFKA_OPERATE_FAILED, String.format("group处于%s, 重置失败(仅Empty | Dead 情况可重置)", GroupStateEnum.getByRawState(description.state()).getState()));
213213
}
214214

215215
// 获取offset

0 commit comments

Comments
 (0)