healchow commented on code in PR #7989:
URL: https://github.com/apache/inlong/pull/7989#discussion_r1193430547
##########
inlong-manager/manager-dao/src/main/resources/mappers/StreamSourceEntityMapper.xml:
##########
@@ -498,6 +523,38 @@
</if>
</where>
</update>
+ <update id="restoreStatusFromHeartbeatByIds">
+ update stream_source
+ <set>
+ status = previous_status,
+ previous_status = #{status, jdbcType=INTEGER},
+ <if test="operator != null and operator !=''">
+ modifier = #{operator, jdbcType=VARCHAR},
+ </if>
+ version = version + 1
+ </set>
+ <where>
+ is_deleted = 0
+ and status = 105
+ <if test="idList != null and idList.size() > 0">
+ and id in
+ <foreach item="item" index="index" collection="idList"
open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
+ </where>
+ </update>
+ <update id="updateStatusToTimeout">
+ update stream_source
+ <set>
+ status = 105
Review Comment:
Please set the previous_status before.
--
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]