提交 1380e6c4 编写于 作者: S shenglian zhou

add log information to printlines

上级 91264170
...@@ -190,7 +190,10 @@ class TDTestCase: ...@@ -190,7 +190,10 @@ class TDTestCase:
def batchInsertTable(self, batch_list): def batchInsertTable(self, batch_list):
for insert_list in batch_list: for insert_list in batch_list:
print(threading.current_thread().name, "length=", len(insert_list))
print(threading.current_thread().name, 'firstline', insert_list[0], 'lastline:', insert_list[-1])
self._conn.insert_lines(insert_list) self._conn.insert_lines(insert_list)
print(threading.current_thread().name, 'end')
def genTableThread(self, thread_count=10): def genTableThread(self, thread_count=10):
threads = list() threads = list()
...@@ -228,7 +231,6 @@ class TDTestCase: ...@@ -228,7 +231,6 @@ class TDTestCase:
self.createStb() self.createStb()
table_list, end_list = self.splitTableList() table_list, end_list = self.splitTableList()
batchInsertTableThread = self.threadInsertTable(end_list=end_list) batchInsertTableThread = self.threadInsertTable(end_list=end_list)
print(end_list)
self.multiThreadRun(batchInsertTableThread) self.multiThreadRun(batchInsertTableThread)
# print(end_list) # print(end_list)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册