Merge pull request #25535 from taosdata/fix/TD-29750-3.0

fix: max topic number allow exist create
This commit is contained in:
Alex Duan 2024-04-29 09:14:19 +08:00 committed by GitHub
commit 132d97bbca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class TDTestCase(TBase):
loop = 0
rets = []
overCnt = 0
while loop < 100:
while loop < 200:
time.sleep(3)
# check upload to s3

View File

@ -38,6 +38,14 @@ class TDTestCase:
tdSql.execute("create topic topic_2 with meta as stable db1.st")
tdSql.execute("create topic topic_3 as select * from db1.nt")
tdSql.execute("create topic topic_4 as select ts,c3,c5,t2 from db1.st")
for i in range(5, 21):
tdSql.execute(f"create topic topic_{i} as select ts,c3,c5,t2 from db1.st")
tdSql.error("create topic topic_21 as select * from db1.nt")
tdSql.execute("create topic if not exists topic_1 as database db1")
for i in range(5, 21):
tdSql.execute(f"drop topic topic_{i}")
tdSql.query("select * from information_schema.ins_topics order by topic_name")
tdSql.checkRows(4)