Skip to content

Conversation

@EmmyMiao87
Copy link
Contributor

The function of miniLoadBegin will return the txn_id.
If the backend sends the duplicated request to frontend, frontend will return the txn_id which was created by the same mini load.

The issue is that frontend returns the txn_id when the last same request hasn't been begun the txn.
The frontend returns the zero which is initialized txn_id and the be could not execute the load plan with a error txn_id.

The commit conbines the createLoadJob and execute together in the write lock. It protects the atomicity of create and beginTxn.
So the duplicated request cannot get the txn id before the last same request is finished.

The function of miniLoadBegin will return the txn_id.
If the backend sends the duplicated request to frontend, frontend will return the txn_id which was created by the same mini load.

The issue is that frontend returns the txn_id when the last same request hasn't been begun the txn.
The frontend returns the zero which is initialized txn_id and the be could not execute the load plan with a error txn_id.

The commit conbines the `createLoadJob` and `execute` together in the write lock. It protects the atomicity of `create` and `beginTxn`.
So the duplicated request cannot get the txn id before the last same request is finished.
@imay imay merged commit 1f3f3f7 into apache:master Jul 18, 2019
EmmyMiao87 added a commit to baidu-doris/incubator-doris that referenced this pull request Jul 19, 2019
The function of miniLoadBegin will return the txn_id.
If the backend sends the duplicated request to frontend, frontend will return the txn_id which was created by the same mini load.

The issue is that frontend returns the txn_id when the last same request hasn't been begun the txn.
The frontend returns the zero which is initialized txn_id and the be could not execute the load plan with a error txn_id.

The commit conbines the `createLoadJob` and `execute` together in the write lock. It protects the atomicity of `create` and `beginTxn`.
So the duplicated request cannot get the txn id before the last same request is finished.
@imay imay mentioned this pull request Sep 26, 2019
luwei16 pushed a commit to luwei16/Doris that referenced this pull request Apr 7, 2023
…restart FE (apache#1504)

http://jira.selectdb.com:8090/browse/CORE-1614

TODO:
how to test?
1. create table hits_tsv (...);
2. create stage my_ext_stage(...);
3. copy into hits_tsv from (...) @my_ext_stage (...);
4. restart fe immediately;
5. show copy
be careful, we should load several GB data into table.
swjtu-zhanglei added a commit to swjtu-zhanglei/incubator-doris that referenced this pull request Jul 25, 2023
…apache#1746)

apache#1504 introduced a bug which leads to some files cannot be loaded when FE restarts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants