@Override
    public boolean delGroupCtrlConf(String operator, String groupName,
            StringBuilder strBuff, ProcessResult result) {
        Integer lid = null;
        GroupResCtrlEntity curEntity;
        String printPrefix = "[delGroupCtrlConf], ";
        // execute add or update operation
        try {
            // lock group name meta-lock
            lid = metaRowLock.getLock(null,
                    StringUtils.getBytesUtf8(groupName), true);
            // get current record and judge execute condition
            curEntity = groupResCtrlMapper.getGroupResCtrlConf(groupName);
            if (curEntity == null) {
                result.setFailResult(null);
                return result.isSuccess();
            }
            if (consumeCtrlMapper.isGroupNameInUse(groupName)) {
                result.setFailResult(DataOpErrCode.DERR_CONDITION_LACK.getCode(),
                        strBuff.append("Group ").append(groupName)
                                .append(" has consume control configures,")
                                .append(", please delete consume control configures first!")
                                .toString());
                strBuff.delete(0, strBuff.length());
                return result.isSuccess();
            }
            groupResCtrlMapper.delGroupResCtrlConf(groupName, strBuff, result);
        } catch (Throwable e) {
            return logExceptionInfo(e, printPrefix, strBuff, result);
        } finally {
            if (lid != null) {
                metaRowLock.releaseRowLock(lid);
            }
        }
        // print log to file
        if (result.isSuccess()) {
            strBuff.append(printPrefix).append(operator)
                    .append(" deleted group control configure: ").append(curEntity);
            logger.info(strBuff.toString());
            strBuff.delete(0, strBuff.length());
        }
        return result.isSuccess();
    }
Add or Update group control configure info

@param chkConsistent     whether order operation condition
@param isAddOpOrOnlyAdd  the operation type,
@param entity            the entity need to operation
@param strBuff           the string buffer
@param result            the process result return
@return true if success otherwise false
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/metamanage/metastore/impl/AbsMetaConfigMapperImpl.java