Skip to content
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

Handle the session exception for all kyuubi operations during running #5725

Closed

Conversation

turboFei
Copy link
Member

@turboFei turboFei commented Nov 18, 2023

🔍 Description

Now only the LaunchEngine and BatchJobSubmission handle the kyuubi session exception.

We shall handle the session exception for all kyuubi operations, so that the user can get the correct KyuubiSessionEvent with RESTful API.

Issue References 🔗

This pull request fixes #

Describe Your Solution 🔧

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

Behavior With This Pull Request 🎉

Related Unit Tests


Checklists

📝 Author Self Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • This patch was not authored or co-authored using Generative Tooling

📝 Committer Pre-Merge Checklist

  • Pull request title is okay.
  • No license issues.
  • Milestone correctly set?
  • Test coverage is ok
  • Assignees are selected.
  • Minimum number of approvals
  • No changes are requested

Be nice. Be informative.

@turboFei turboFei self-assigned this Nov 18, 2023
@turboFei turboFei added this to the v1.8.1 milestone Nov 18, 2023
@turboFei turboFei changed the title Handle the session exception during running the operation Handle the session exception for all kyuubi operations during running Nov 18, 2023
save

Revert "save"

This reverts commit c3f8fca.

session
@turboFei turboFei force-pushed the handle_session_exception_rest branch from 58d02e5 to 5d9d4dc Compare November 18, 2023 07:12
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3478fc9) 61.37% compared to head (dd514f3) 61.28%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5725      +/-   ##
============================================
- Coverage     61.37%   61.28%   -0.09%     
  Complexity       23       23              
============================================
  Files           607      607              
  Lines         35820    35836      +16     
  Branches       4914     4917       +3     
============================================
- Hits          21983    21962      -21     
- Misses        11456    11482      +26     
- Partials       2381     2392      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@turboFei
Copy link
Member Author

cc @pan3793

Copy link
Member

@pan3793 pan3793 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending CI

@pan3793 pan3793 closed this in 39f39a1 Nov 20, 2023
pan3793 pushed a commit that referenced this pull request Nov 20, 2023
… during running

# 🔍 Description

Now only the `LaunchEngine` and `BatchJobSubmission` handle the kyuubi session exception.

We shall handle the session exception for all kyuubi operations, so that the user can get the correct KyuubiSessionEvent with RESTful API.

## Issue References 🔗

This pull request fixes #

## Describe Your Solution 🔧

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

## Types of changes 🔖

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklists
## 📝 Author Self Checklist

- [x] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project
- [ ] I have performed a self-review
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

## 📝 Committer Pre-Merge Checklist

- [x] Pull request title is okay.
- [ ] No license issues.
- [ ] Milestone correctly set?
- [ ] Test coverage is ok
- [ ] Assignees are selected.
- [ ] Minimum number of approvals
- [ ] No changes are requested

**Be nice. Be informative.**

Closes #5725 from turboFei/handle_session_exception_rest.

Closes #5725

dd514f3 [fwang12] remove
1614951 [fwang12] handle
cee9171 [fwang12] Revert "handle session exception for all kyuubi operations"
4a0c192 [fwang12] Revert "comment"
7ce89f8 [fwang12] comment
5d9d4dc [fwang12] handle session exception for all kyuubi operations

Authored-by: fwang12 <fwang12@ebay.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit 39f39a1)
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793
Copy link
Member

pan3793 commented Nov 20, 2023

Thanks, merged to master/1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants