-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature] [Connector-V2] [IoTDB] Added source and sink connectors to support IoTDB 2.X #9872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
…leCompression in tableSession
|
||
| 数据源 | 支持的版本 | 地址 | | ||
|-------|------------------------------|----------------| | ||
| IoTDB | `0.13.0 <= version <= 1.3.X` | localhost:6667 | |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
@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(), |
There was a problem hiding this comment.
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?
for (int i = 0; i <= maxRetries; i++) { | ||
try { |
There was a problem hiding this comment.
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
Please paste the result picture of your local running to check the accuracy. For example, using this task config file |
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 |
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
New License Guide