kipshi commented on code in PR #8587: URL: https://github.com/apache/inlong/pull/8587#discussion_r1272941582
########## inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/compromize/Compromizer.java: ########## @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.inlong.manager.service.group.compromize; + +/** + * Operator which ensure the consistency of the state of all components within the group + */ +public interface Compromizer { + + public abstract void compromize(String inlongGroupId); Review Comment: done, removed ########## inlong-manager/manager-dao/src/main/resources/mappers/InlongGroupEntityMapper.xml: ########## @@ -390,20 +390,35 @@ and is_deleted = 0 </where> </select> - <select id="selectDeletedGroupIds" resultType="java.lang.String"> + <select id="selectDeletedGroupIdsWithTimeBefore" resultType="java.lang.String"> <bind name="_isInlongService" value="LoginUser.InlongService"/> select inlong_group_id from inlong_group <where> + modify_time <= #{timeBefore, jdbcType=TIMESTAMP} <if test="_isInlongService == false"> - tenant = #{tenant,jdbcType=VARCHAR} + and tenant = #{tenant,jdbcType=VARCHAR} </if> - and modify_time <= #{timeBefore, jdbcType=TIMESTAMP} </where> group by inlong_group_id having min(is_deleted) > 0 limit #{limit, jdbcType=INTEGER} </select> + <select id="selectDeletedGroupIdsWithTimeAfter" resultType="java.lang.String"> + <bind name="_isInlongService" value="LoginUser.InlongService"/> + select inlong_group_id + from inlong_group + <where> + modify_time >= #{timeAfter, jdbcType=TIMESTAMP} + <if test="_isInlongService == false"> + and tenant = #{tenant,jdbcType=VARCHAR} + </if> + </where> + where Review Comment: done, removed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
