[FEAT MERGE] incremental direct load phase I

Co-authored-by: Monk-Liu <1152761042@qq.com>
Co-authored-by: suz-yang <suz.yang@foxmail.com>
Co-authored-by: ZenoWang <wzybuaasoft@163.com>
This commit is contained in:
coolfishchen
2024-04-22 09:23:47 +00:00
committed by ob-robot
parent 4d7b31b518
commit 9de65fb1d7
278 changed files with 13417 additions and 6679 deletions

View File

@ -194,14 +194,12 @@ TEST_F(ObTestMemtableNewSafeToDestroy, test_safe_to_destroy)
WRITE_SQL_BY_CONN(user_connection, "begin;");
WRITE_SQL_FMT_BY_CONN(user_connection, "insert into qcc values(1);");
ASSERT_EQ(0, SSH::find_tx(user_connection, qcc_tx_id));
ObTableHandleV2 handle;
ObTabletID tablet_id;
ASSERT_EQ(0, SSH::select_table_tablet(tenant_id, "qcc", tablet_id));
get_memtable(tenant_id, share::ObLSID(1001), tablet_id, handle);
memtable::ObIMemtable *imemtable;
ObIMemtable *imemtable;
handle.get_memtable(imemtable);
memtable::ObMemtable *memtable = dynamic_cast<memtable::ObMemtable *>(imemtable);
TRANS_LOG(INFO, "qcc print", KPC(memtable));
@ -221,7 +219,7 @@ TEST_F(ObTestMemtableNewSafeToDestroy, test_safe_to_destroy)
handle.reset();
storage::ObTabletMemtableMgr *memtable_mgr = memtable->get_memtable_mgr_();
storage::ObTabletMemtableMgr *memtable_mgr = memtable->get_memtable_mgr();
EXPECT_EQ(OB_SUCCESS, memtable_mgr->release_memtables());
TRANS_LOG(INFO, "qcc print2", KPC(memtable));;