Skip to content

Commit

Permalink
rm ut
Browse files Browse the repository at this point in the history
Signed-off-by: silverbullet233 <[email protected]>
  • Loading branch information
silverbullet233 committed Jan 17, 2025
1 parent 52265ae commit eb10c51
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,19 +327,4 @@ public void testCreateTableSerializeException() {
Assert.assertNull(db.getTable(tableId));
Assert.assertNull(db.getTable(tableName));
}
@Test
public void testReplayDropTable() throws Exception {
starRocksAssert.withDatabase("test").useDatabase("test").withTable(
"create temporary table tmp(k1 int) distributed by hash(k1) buckets 3 properties('replication_num'='1');");
LocalMetastore localMetastore = GlobalStateMgr.getCurrentState().getLocalMetastore();
Database database = starRocksAssert.getDb("test");
Assert.assertNotNull(database);
Table table = MetaUtils.getSessionAwareTable(connectContext, database, new TableName("test", "tmp"));
Assert.assertNotNull(table);
Assert.assertTrue(table.isOlapTable());
Assert.assertTrue(((OlapTable) table).isTemporaryTable());
// non-master node can replay drop temporary table successfully
GlobalStateMgr.getCurrentState().setFrontendNodeType(FrontendNodeType.INIT);
localMetastore.replayDropTable(database, table.getId(), false);
}
}

0 comments on commit eb10c51

Please sign in to comment.