Skip to content

Conversation

LJW21-02
Copy link

Purpose of this pull request

This pull request adds both source and sink connectors to support IoTDB version >= 2.X.

Does this PR introduce any user-facing change?

No

How was this patch tested?

e2e tests

Check list

@github-actions github-actions bot removed the Zeta label Sep 18, 2025

| 数据源 | 支持的版本 | 地址 |
|-------|------------------------------|----------------|
| IoTDB | `0.13.0 <= version <= 1.3.X` | localhost:6667 |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect

sinkConfig.setEnableRPCCompression(
pluginConfig.get(IoTDBSinkOptions.ENABLE_RPC_COMPRESSION));
if (pluginConfig.getOptional(IoTDBSinkOptions.CONNECTION_TIMEOUT_IN_MS).isPresent()) {
checkNotNull(sinkConfig.getEnableRPCCompression());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why check here?


try {
if (session != null) {
session.close();
Copy link
Member

@zhangshenghang zhangshenghang Sep 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flush method exception, which can result in the inability to shut down resources

@LJW21-02
Copy link
Author

@zhangshenghang Hi, thank you for your review and suggestions! I’ve addressed the changes. Could you please take another look?

} else {
session.insertRecords(
batchRecords.getDeviceIds(),
batchRecords.getTimestamps(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a break in this for clause?

Comment on lines +217 to +218
for (int i = 0; i <= maxRetries; i++) {
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same with last for clause

@davidzollo
Copy link
Contributor

davidzollo commented Sep 19, 2025

Please paste the result picture of your local running to check the accuracy. For example, using this task config file seatunnel-e2e/seatunnel-connector-v2-e2e/connector-iotdb-v2-e2e/src/test/resources/iotdb/iotdb_source_to_sink_table.conf, then you can check whether the count is the same between the sink side and the source side. You can use a small dataset to check.

@zhangshenghang
Copy link
Member

@zhangshenghang Hi, thank you for your review and suggestions! I’ve addressed the changes. Could you please take another look?

thanks @LJW21-02 ,you can solve the CI failure first, if you think the code is fine, you can try CI again a few times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants