-
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 #3922] Only the ApplicationInfo with non-empty id is valid fo…
…r BatchJobSubmission ### _Why are the changes needed?_ ![image](https://user-images.githubusercontent.com/6757692/206124635-2e43542a-337f-455b-bccc-f7907d5e26db.png) The batch state is update to running, but app state is NOT_FOUND. We shall check the ApplicationInfo return by applicationManager. Because for YarnApplicationOperation, the result of getApplicationInfoByTag is always non-empty. ``` if (reports.isEmpty) { debug(s"Application with tag $tag not found") ApplicationInfo(id = null, name = null, state = ApplicationState.NOT_FOUND) } ``` ### _How was this patch tested?_ - [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [x] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3922 from turboFei/not_found. Closes #3922 f83c67c [fwang12] set not found state if finally state is empty 62e619b [fwang12] fix ut 53c76d2 [fwang12] fix ut ff5c36b [fwang12] check id none empty 7b1180c [fwang12] add ut 4843f8a [fwang12] do not update not found as batch state Authored-by: fwang12 <fwang12@ebay.com> Signed-off-by: fwang12 <fwang12@ebay.com>
- Loading branch information
Showing
4 changed files
with
26 additions
and
8 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