Ring-k commented on a change in pull request #1387:
URL: https://github.com/apache/incubator-iotdb/pull/1387#discussion_r444928084
##########
File path:
server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
##########
@@ -914,8 +914,26 @@ public void insert(InsertPlan insertPlan) throws
QueryProcessException {
insertPlan.setSchemasAndTransferType(schemas);
StorageEngine.getInstance().insert(insertPlan);
if (insertPlan.getFailedMeasurements() != null) {
- throw new StorageEngineException(
- "failed to insert points " + insertPlan.getFailedMeasurements());
+ // check if all path not exist exceptions
+ List<String> failedPaths = new
ArrayList<>(insertPlan.getFailedMeasurements().keySet());
+ List<Exception> exceptions = new
ArrayList<>(insertPlan.getFailedMeasurements().values());
+ boolean isPathNotExistException = true;
+ for(Exception e : exceptions){
+ Exception curException = e;
+ while(curException.getCause() != null){
+ curException = (Exception) curException.getCause();
Review comment:
Thanks for yoru suggestion.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]