【详述】问题详细描述
当数据量在100条/s (不同topic),会出现事务 label为null的问题导致数据无法继续写入
【背景】做过哪些操作?
手动写入消息都是正常的,但是使用java程序进行写入就会出现这个问题
【StarRocks版本】3.1
【表模型】主键模型
【导入或者导出方式】kafka
- 完整的报错异常栈
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.starrocks.data.load.stream.exception.StreamLoadFailException: Transaction prepare failed, db: maintancetestdb, table: m_netstat_0, label: null,
responseBody: {
“Status”: “FAILED”,
“Message”: “class com.starrocks.common.UserException: empty label.”
}
errorLog: null
at com.starrocks.connector.kafka.StarRocksSinkTask.put(StarRocksSinkTask.java:289)
at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:605)
… 11 more
Caused by: java.lang.RuntimeException: com.starrocks.data.load.stream.exception.StreamLoadFailException: Transaction prepare failed, db: maintancetestdb, table: m_netstat_0, label: null,
responseBody: {
“Status”: “FAILED”,
“Message”: “class com.starrocks.common.UserException: empty label.”
}
errorLog: null
at com.starrocks.data.load.stream.v2.StreamLoadManagerV2.AssertNotException(StreamLoadManagerV2.java:428)
at com.starrocks.data.load.stream.v2.StreamLoadManagerV2.flush(StreamLoadManagerV2.java:356)
at com.starrocks.connector.kafka.StarRocksSinkTask.preCommit(StarRocksSinkTask.java:350)
at org.apache.kafka.connect.runtime.WorkerSinkTask.commitOffsets(WorkerSinkTask.java:429)
at org.apache.kafka.connect.runtime.WorkerSinkTask.commitOffsets(WorkerSinkTask.java:399)
at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:230)
… 9 more