[FEAT MERGE] merge transfer

Co-authored-by: wxhwang <wxhwang@126.com>
Co-authored-by: godyangfight <godyangfight@gmail.com>
Co-authored-by: Tyshawn <tuyunshan@gmail.com>
This commit is contained in:
xuhuleon
2023-06-21 11:42:26 +00:00
committed by ob-robot
parent d06678002e
commit 9dae112952
1280 changed files with 149724 additions and 48813 deletions

View File

@ -150,7 +150,7 @@ TEST_F(ObLockTableBeforeRestartTest, test_lock_table_flush)
guard.get_table_id(RunCtx.tenant_id_, "test", "test_lock_table_persistence_t",
false, share::schema::ObSchemaGetterGuard::NON_TEMP_WITH_NON_HIDDEN_TABLE_TYPE, table_id));
ObTableLockService *table_lock_ser = MTL(ObTableLockService*);
ASSERT_EQ(OB_SUCCESS, table_lock_ser->lock_table(table_id, EXCLUSIVE, 1, 0));
ASSERT_EQ(OB_SUCCESS, table_lock_ser->lock_table(table_id, EXCLUSIVE, ObTableLockOwnerID(1), 0));
usleep(1000 * 1000);
ObLockMemtable *lock_memtable
@ -178,7 +178,7 @@ TEST_F(ObLockTableBeforeRestartTest, test_lock_table_flush)
ASSERT_EQ(lock_memtable->flushed_scn_, lock_memtable->freeze_scn_);
//unlock table
ASSERT_EQ(OB_SUCCESS, table_lock_ser->unlock_table(table_id, EXCLUSIVE, 1, 0));
ASSERT_EQ(OB_SUCCESS, table_lock_ser->unlock_table(table_id, EXCLUSIVE, ObTableLockOwnerID(1), 0));
usleep(1000 * 1000);
unlock_scn = lock_memtable->get_rec_scn();
ASSERT_NE(lock_memtable->get_rec_scn(), SCN::max_scn());