EmmyMiao87 commented on a change in pull request #2241: Fix some bugs about
load label
URL: https://github.com/apache/incubator-doris/pull/2241#discussion_r348266288
##########
File path: fe/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
##########
@@ -135,23 +135,17 @@ public long
createLoadJobFromMiniLoad(TMiniLoadBeginRequest request) throws User
LoadJob loadJob = null;
writeLock();
try {
- checkLabelUsed(database.getId(), request.getLabel(),
request.getRequest_id());
+ // checkLabelUsed(database.getId(), request.getLabel(),
request.getRequest_id());
loadJob = new MiniLoadJob(database.getId(), request);
- createLoadJob(loadJob);
+ // call unprotectedExecute before adding load job. so that if job
is not started ok, no need to add
// Mini load job must be executed before release write lock.
// Otherwise, the duplicated request maybe get the transaction id
before transaction of mini load is begun.
loadJob.unprotectedExecute();
- } catch (DuplicatedRequestException e) {
Review comment:
The duplicated request should return the txnId to BE
----------------------------------------------------------------
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]