Issues with Importing Data Using Java Client in TiKV 6.2

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tikv6.2使用java 客户端导入数据的问题

| username: TiDBer_Gl5pxtgS

Bug Report
Clearly and accurately describe the issue you found, providing any steps to reproduce the problem can help the development team address the issue promptly.
【TiKV Version】
6.2
【Impact of the Bug】
Exception in thread “Thread-3” java.lang.RuntimeException: org.tikv.common.exception.TiKVException: TimeOut Exceeded for current operation.

at rocksdb.CkToTiKvAll$1.run(CkToTiKvAll.java:44)

Caused by: org.tikv.common.exception.TiKVException: TimeOut Exceeded for current operation.

at org.tikv.common.util.ClientUtils.getTasks(ClientUtils.java:181

at org.tikv.raw.RawKVClient.doSendBatchPut(RawKVClient.java:756)

at org.tikv.raw.RawKVClient.batchPut(RawKVClient.java:260)

at org.tikv.raw.RawKVClient.batchPut(RawKVClient.java:243)

at rocksdb.CkToTiKv.main(CkToTiKv.java:64)

at rocksdb.CkToTiKvAll$1.run(CkToTiKvAll.java:37)
【Possible Steps to Reproduce the Issue】
java client batch submission set to 100 will report an error
【Observed Unexpected Behavior】

【Expected Behavior】

【Related Components and Specific Versions】

【Other Background Information or Screenshots】
Such as cluster topology, system and kernel version, application app information, etc.; if the issue is related to SQL, please provide SQL statements and related table schema information; if there are critical errors in the node logs, please provide the relevant node log content or files; if some business-sensitive information is inconvenient to provide, please leave contact information, and we will communicate with you privately.

| username: xfworld | Original post link

After reviewing the source code, the batch processing is done asynchronously and eventually uses Future for callbacks.

It is clear that the callback here is null, which will definitely cause an error.

I suggest checking the cluster environment. If batch 1 and 10 to 100 all report errors, there must be an issue with the environment.

| username: TiDBer_Gl5pxtgS | Original post link

The environment should be fine. Using the bulk import program (migration/online-bulk-load at main · tikv/migration · GitHub) can successfully complete the bulk import, and 50,000 per partition is not a problem!

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.