add testcase of disorder and null data in tmq test
This commit is contained in:
parent
f0c6515e36
commit
34d081b138
|
@ -51,24 +51,17 @@ class TDTestCase:
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
res = consumer.poll(1)
|
res = consumer.poll(1)
|
||||||
print(cnt,res)
|
print(res)
|
||||||
if not res:
|
if not res:
|
||||||
print("111",cnt)
|
|
||||||
if cnt == 0 or cnt != 2*self.expected_affected_rows:
|
if cnt == 0 or cnt != 2*self.expected_affected_rows:
|
||||||
tdLog.exit("consume error")
|
tdLog.exit("consume error")
|
||||||
break
|
break
|
||||||
val = res.value()
|
val = res.value()
|
||||||
print(val)
|
|
||||||
if val is None:
|
if val is None:
|
||||||
continue
|
continue
|
||||||
for block in val:
|
for block in val:
|
||||||
print(block.fetchall(),len(block.fetchall()))
|
print(block.fetchall(),len(block.fetchall()))
|
||||||
cnt += len(block.fetchall())
|
cnt += len(block.fetchall())
|
||||||
# print(cnt)
|
|
||||||
# if cnt != 3:
|
|
||||||
# tdLog.exit("consume error")
|
|
||||||
# print("polling")
|
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
consumer.close()
|
consumer.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue