-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[IOTDB-1163]optimize the insertRecords session interface for cluster version #2698
Conversation
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.
Good Job!
plan.getResults().put(i, RpcUtils.getStatus(e.getErrorCode(), e.getMessage())); | ||
allSuccess = false; | ||
} | ||
if (!allSuccess) { |
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.
do we need to insert the left records while one record is failed? @qiaojialin
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.
Thanks for your review, in my opinion, I support inserting the remaining records in case of one record insertion failure. After all, we support partial insertion success. Moreover, this implementation is consistent with the previous semantics of composing each record into an InsertRowPlan.
SonarCloud Quality Gate failed. |
Map<Integer, TSStatus> checkTsStatus, | ||
int totalRowCount) { | ||
|
||
if (allSuccess) { |
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.
Changing allSuccess to allCheckSuccess is better.
https://issues.apache.org/jira/browse/IOTDB-1163