-
Notifications
You must be signed in to change notification settings - Fork 868
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI #3950] Fix the batch metadata in-consistent issue on open bat…
…ch session failure ### _Why are the changes needed?_ I found that, there is some confused batch metadata. The metadata state in mysql is PENDING, but the batch session state is `ERROR`. I think the RC is that: - the metadata insert is in KyuubiBatchSessionImpl - If open batch session failed, the BatchJobSubmission opHandle has not been added into batch session operation set. - then the close session will not update the batch metadata In this pr, I re-order the code when opening batch session. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3950 from turboFei/update_batch_state. Closes #3950 49a8e07 [fwang12] try to kill fd495bc [fwang12] fix ut 6d3bd69 [fwang12] add ut bb2bf89 [fwang12] add more log 0c9f32b [fwang12] check recovery metadata if failed before run batch op 23f8fef [fwang12] comments e45b192 [fwang12] re-order 0f0ad84 [fwang12] set launchEngineOp to lazy to prevent the OP CONN metrics failure 0eed14d [fwang12] add batch op c39da31 [fwang12] Revert "insert metadata when run operation" 61b40c4 [fwang12] insert metadata when run operation Authored-by: fwang12 <fwang12@ebay.com> Signed-off-by: fwang12 <fwang12@ebay.com>
- Loading branch information
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters