-
Notifications
You must be signed in to change notification settings - Fork 981
[KYUUBI #5210] Cancel operation will cause the log file node to leak #5211
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5211 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 590 590
Lines 33357 33357
Branches 4407 4407
======================================
Misses 33357 33357
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| try { | ||
| // For launch engine operation, we use OperationLog to pass engine submit log but | ||
| // at that time we do not have remoteOpHandle | ||
| getOperationLog.foreach(_.close()) |
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.
what happens if this operation is closed ?
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.
Close the log stream gracefully, then delete the log file
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.
Sorry, I replied to your message but forgot to submit it
### _Why are the changes needed?_ ### _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 - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ Closes #5211 from ASiegeLion/master. Closes #5210 6366e96 [peiyue liu] Merge branch 'apache:master' into master 34dcc57 [liupeiyue] [KYUUBI #5210]Cancel operation will cause the log file node to leak Lead-authored-by: peiyue liu <945076608@qq.com> Co-authored-by: liupeiyue <liupeiyue@yy.com> Signed-off-by: ulyssesyou <ulyssesyou@apache.org> (cherry picked from commit 721c0a4) Signed-off-by: ulyssesyou <ulyssesyou@apache.org>
### _Why are the changes needed?_ ### _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 - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ Closes #5211 from ASiegeLion/master. Closes #5210 6366e96 [peiyue liu] Merge branch 'apache:master' into master 34dcc57 [liupeiyue] [KYUUBI #5210]Cancel operation will cause the log file node to leak Lead-authored-by: peiyue liu <945076608@qq.com> Co-authored-by: liupeiyue <liupeiyue@yy.com> Signed-off-by: ulyssesyou <ulyssesyou@apache.org> (cherry picked from commit 721c0a4) Signed-off-by: ulyssesyou <ulyssesyou@apache.org>
|
thanks, merged to master/1.8/1.7 |
Why are the changes needed?
Close #5210.
The cancel operation may cause log file handle leak
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
Run test locally before make a pull request
Was this patch authored or co-authored using generative AI tooling?