imay commented on a change in pull request #1992: [Bug-fix][Broker-load] Fix
the bug of the label already exists when the txn has been finished
URL: https://github.com/apache/incubator-doris/pull/1992#discussion_r335258621
##########
File path: fe/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
##########
@@ -602,6 +602,9 @@ public void readFields(DataInput in) throws IOException {
map.put(loadJob.getLabel(), jobs);
}
jobs.add(loadJob);
+ if (!loadJob.isCompleted()) {
Review comment:
I think you should use another way to achieve this. When this function is
called, Catalog is not ready. However you start to use Catalog's item, this is
error-prone.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]