Issue #24746:add CheckMode