Fix: #3588 When truncate the table, a ConcurrentModificationException may thrown when there are temp partitions in this table. NOTICE(#3622 ): This is a "revert of revert pull request". This pr is mainly used to synthesize the PRs whose commits were scattered and submitted due to the wrong merge method into a complete single commit.