like we did in pr: https://github.com/pingcap/tiflow/pull/12362, but now we need to cherry-pick it to release-8.5 branch
like we did in pr: #12362, but now we need to cherry-pick it to release-8.5 branch