[regression-test](p0) fix some unstable p0 cases (#17518)
drop database before create remove some large, unused debug log
This commit is contained in:
@ -1127,9 +1127,6 @@ public class MaterializedViewHandler extends AlterHandler {
|
||||
changeTableStatus(alterJob.getDbId(), alterJob.getTableId(), OlapTableState.NORMAL);
|
||||
LOG.info("set table's state to NORMAL, table id: {}, job id: {}", alterJob.getTableId(),
|
||||
alterJob.getJobId());
|
||||
} else {
|
||||
LOG.debug("not set table's state, table id: {}, is job done: {}, job id: {}", alterJob.getTableId(),
|
||||
alterJob.isDone(), alterJob.getJobId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -339,7 +339,7 @@ public class OlapTable extends Table {
|
||||
}
|
||||
}
|
||||
}
|
||||
LOG.debug("after rebuild full schema. table {}, schema: {}", id, fullSchema);
|
||||
LOG.debug("after rebuild full schema. table {}, schema size: {}", id, fullSchema.size());
|
||||
}
|
||||
|
||||
public boolean deleteIndexInfo(String indexName) {
|
||||
|
||||
@ -135,6 +135,7 @@ public class BatchRollupJobTest {
|
||||
OlapTable tbl = (OlapTable) db.getTableNullable("tbl2");
|
||||
Assert.assertNotNull(tbl);
|
||||
|
||||
|
||||
for (AlterJobV2 alterJobV2 : alterJobs.values()) {
|
||||
if (alterJobV2.getType() != AlterJobV2.JobType.ROLLUP) {
|
||||
continue;
|
||||
@ -163,8 +164,18 @@ public class BatchRollupJobTest {
|
||||
break;
|
||||
}
|
||||
|
||||
int finishedJobNum = 0;
|
||||
for (AlterJobV2 alterJobV2 : alterJobs.values()) {
|
||||
if (alterJobV2.getType() != AlterJobV2.JobType.ROLLUP) {
|
||||
continue;
|
||||
}
|
||||
if (alterJobV2.getJobState() == AlterJobV2.JobState.FINISHED) {
|
||||
++finishedJobNum;
|
||||
}
|
||||
}
|
||||
|
||||
for (Partition partition : tbl.getPartitions()) {
|
||||
Assert.assertEquals(2, partition.getMaterializedIndices(IndexExtState.VISIBLE).size());
|
||||
Assert.assertEquals(finishedJobNum + 1, partition.getMaterializedIndices(IndexExtState.VISIBLE).size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,10 +17,8 @@
|
||||
|
||||
suite("test_unique_table_like") {
|
||||
def dbName = "test_unique_db"
|
||||
List<List<Object>> db = sql "show databases like '${dbName}'"
|
||||
if (db.size() == 0) {
|
||||
sql "CREATE DATABASE ${dbName}"
|
||||
}
|
||||
sql "drop database if exists ${dbName}"
|
||||
sql "CREATE DATABASE ${dbName}"
|
||||
sql "use ${dbName}"
|
||||
|
||||
// test uniq table like
|
||||
|
||||
Reference in New Issue
Block a user