-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Put begin txn into task scheduler #687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put begin txn into task scheduler #687
Conversation
EmmyMiao87
commented
Mar 5, 2019
- fix the nesting lock of db and txn
- the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
| } | ||
| } | ||
|
|
||
| public List<Long> getBackendIdsByCluster(String clusterName) throws MetaNotFoundException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a method in SystemInfoService
| ConnectContext.get().getQualifiedUser(), | ||
| ConnectContext.get().getRemoteIP(), | ||
| routineLoadJob.getTableName()); | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check priv does not throw MetaNotFoundException
| public long getMinTaskBeId() throws LoadException { | ||
| public long getMinTaskBeId(String clusterName) throws LoadException { | ||
| List<Long> beIdsInCluster = new ArrayList<>(); | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use method in SystemInfoService
|
|
||
| abstract TRoutineLoadTask createRoutineLoadTask() throws LoadException, UserException; | ||
|
|
||
| public void setTxn() throws LabelAlreadyUsedException, BeginTransactionException, AnalysisException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to name it 'beginTxn'?
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
1. fix the nesting lock of db and txn 2. the txn of task will be init in task scheduler before take task from queue
…pache#687) Some basic unit test for meta service * create_instance get_cluster * get_tablet_stats * begin_txn precommit_txn commit_txn there are more to be done.