[fix](doriswriter)Fix multiple concurrent import label duplication issues #28344

This commit is contained in:
caoliang-web
2023-12-14 12:39:22 +08:00
committed by GitHub
parent 48937fef48
commit b443db6e3e

View File

@ -127,7 +127,7 @@ public class DorisStreamLoadObserver {
"could not get the final state of label[%s].\n", label), null);
}
Map<String, Object> result = (Map<String, Object>)JSON.parse(EntityUtils.toString(respEntity));
String labelState = (String)result.get("state");
String labelState = (String)result.get("data");
if (null == labelState) {
throw new IOException(String.format("Failed to flush data to Doris, Error " +
"could not get the final state of label[%s]. response[%s]\n", label, EntityUtils.toString(respEntity)), null);
@ -263,4 +263,4 @@ public class DorisStreamLoadObserver {
return false;
}
}
}
}