cherry-pick from 3_1_x_release to 3.1_opensource_release

This commit is contained in:
yy0
2021-07-26 10:42:25 +08:00
committed by wangzelin.wzl
parent f2f91f98c6
commit 821da37d63
29 changed files with 318 additions and 368 deletions

View File

@ -967,6 +967,8 @@ int ObMigratePrepareTask::create_new_partition(const ObAddr& src_server, ObRepli
partition->get_pg_storage().is_restoring_standby()))) {
} else if (need_create_memtable && OB_FAIL(partition->create_memtable(in_slog_trans))) {
STORAGE_LOG(WARN, "fail to create memtable", K(ret));
// pause it to make sure the sstable upper trans version is update after migration finished.
} else if (need_create_memtable && OB_FALSE_IT(partition->get_pg_storage().pause())) {
} else {
file_handle.reset();
// create new partition need set schema_version in pg meta in order to prevent gc