taosdata/TDengine

java.sql.SQLException: ERROR (0x2318): java.util.concurrent.TimeoutException: ERROR (0x231e): failed to complete the task within the specified time

Open

#23.615 geöffnet am 9. Nov. 2023

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C (5.002 Forks)batch import
help wantedquestion

Repository-Metriken

Stars
 (24.849 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 1h) (4 gemergte PRs in 30 T)

Beschreibung

TDengine使用的3.2.0.0版本,驱动版本为3.2.7。 执行subscribe方法时不报错,但是执行poll方法时可能会报错。 消费者组中有两个消费者,报错的为其中固定的一个。执行poll方法时,可能会阻塞一段时间然后报错,也可能正常执行。 错误信息:Caused by: java.sql.SQLException: ERROR (0x2318): java.util.concurrent.TimeoutException: ERROR (0x231e): failed to complete the task:{"action":"poll","args":{"blocking_time":100,"req_id":2}} within the specified time : 60000,MILLISECONDS at com.taosdata.jdbc.TSDBError.createSQLException(TSDBError.java:87) at com.taosdata.jdbc.ws.Transport.send(Transport.java:90) at com.taosdata.jdbc.ws.tmq.WSConsumer.poll(WSConsumer.java:109) at com.taosdata.jdbc.tmq.TaosConsumer.poll(TaosConsumer.java:93) at com.uniorange.dcs.consumer.ConsumerHandler.execute(ConsumerHandler.java:101) 此错误只在集群模式下会有,单体模式下消费者组可以正常使用 尝试增大CONNECT_MESSAGE_TIMEOUT参数的值,但是没有什么效果

Contributor Guide