提交 e2916089 编写于 作者: zhangbiyun's avatar zhangbiyun

Failed to start TDengine server service.(vnode tsdb data file has wrong size ,...

Failed to start TDengine server service.(vnode tsdb data file has wrong size , report to upper layer to fix it) #13529
上级 2f2b0bf6
...@@ -27,12 +27,12 @@ def query_callback(p_sub, p_result, p_param, code): ...@@ -27,12 +27,12 @@ def query_callback(p_sub, p_result, p_param, code):
if __name__ == '__main__': if __name__ == '__main__':
conn = taos.connect(host="192.168.0.101",user="root",password="taosdata") conn = taos.connect()
restart = True restart = True
topic = "topic-meter-current-bg" topic = "topic-meter-current-bg"
sql = "select * from test.meters where current > 10" # Error sql sql = "select * from power.meters where current > 10" # Error sql
interval = 2000 # consumption interval in microseconds. interval = 2000 # consumption interval in microseconds.
_ = conn.subscribe(restart, topic, sql, interval) _ = conn.subscribe(restart, topic, sql, interval, query_callback)
# Note: we received the return value as _ above, to avoid the TaosSubscription object to be deleted by gc. # Note: we received the return value as _ above, to avoid the TaosSubscription object to be deleted by gc.
while True: while True:
time.sleep(10) # use Ctrl + C to interrupt time.sleep(10) # use Ctrl + C to interrupt
[06/13 14:00:51.480051] INFO: start creating 100 table(s) with 8 thread(s)
Spent 0.2650 seconds to create 100 table(s) with 8 thread(s), already exist 0 table(s), actual 100 table(s) pre created, 0 table(s) will be auto created
Spent 0.0251 seconds to insert rows: 20000, affected rows: 20000 with 8 thread(s) into test 796527.14 records/second
insert delay, min: 0.16ms, avg: 0.96ms, p90: 1.50ms, p95: 3.00ms, p99: 10.50ms, max: 10.50ms
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册