Skip to content

Conversation

@turboFei
Copy link
Member

@turboFei turboFei commented Apr 9, 2025

Why are the changes needed?

To fix the batch kyuubi instance port is negative issue.
image

It happen after I stop the kyuubi service.
We should use variable instead of function for jetty server serverUri.
After the server connector stopped, the localPort would be -2.

image

How was this patch tested?

Existing UT.

Was this patch authored or co-authored using generative AI tooling?

No.

@turboFei turboFei changed the title hard code the server uri Using mutable JettyServer uri to prevent batch kyuubi instance mismatch Apr 9, 2025
@turboFei turboFei requested a review from pan3793 April 9, 2025 06:59
@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (d6f07a6) to head (3d34c40).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...cala/org/apache/kyuubi/server/ui/JettyServer.scala 0.00% 9 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #7017   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         694     694           
  Lines       42753   42760    +7     
  Branches     5820    5820           
======================================
- Misses      42753   42760    +7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@turboFei turboFei self-assigned this Apr 9, 2025
@turboFei turboFei added this to the v1.9.4 milestone Apr 9, 2025
@turboFei turboFei closed this in 0cc52d0 Apr 9, 2025
turboFei added a commit that referenced this pull request Apr 9, 2025
…instance mismatch

### Why are the changes needed?

To fix the batch kyuubi instance port is negative issue.
<img width="697" alt="image" src="https://github.com/user-attachments/assets/ef992390-8d20-44b3-8640-35496caff85d" />

It happen after I stop the kyuubi service.
We should use variable instead of function for jetty server serverUri.
After the server connector stopped, the localPort would be `-2`.

![image](https://github.com/user-attachments/assets/5152293d-9c2c-4979-bdcb-322f02928813)

### How was this patch tested?

Existing UT.
### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #7017 from turboFei/server_port_negative.

Closes #7017

3d34c40 [Wang, Fei] warn
e582986 [Wang, Fei] mutable server uri
2cbaf77 [Wang, Fei] Revert "hard code the server uri"
b64d91b [Wang, Fei] hard code the server uri

Authored-by: Wang, Fei <[email protected]>
Signed-off-by: Wang, Fei <[email protected]>
(cherry picked from commit 0cc52d0)
Signed-off-by: Wang, Fei <[email protected]>
@turboFei turboFei modified the milestones: v1.9.4, v1.10.2 Apr 9, 2025
@turboFei turboFei deleted the server_port_negative branch April 9, 2025 17:27
@turboFei
Copy link
Member Author

turboFei commented Apr 9, 2025

thanks, merging to master and branch-1.10

turboFei added a commit to turboFei/kyuubi that referenced this pull request Aug 27, 2025
…yuubi instance mismatch (apache#688)

### Why are the changes needed?

To fix the batch kyuubi instance port is negative issue.
<img width="697" alt="image" src="https://github.com/user-attachments/assets/ef992390-8d20-44b3-8640-35496caff85d" />

It happen after I stop the kyuubi service.
We should use variable instead of function for jetty server serverUri.
After the server connector stopped, the localPort would be `-2`.

![image](https://github.com/user-attachments/assets/5152293d-9c2c-4979-bdcb-322f02928813)

### How was this patch tested?

Existing UT.
### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#7017 from turboFei/server_port_negative.

Closes apache#7017

3d34c40 [Wang, Fei] warn
e582986 [Wang, Fei] mutable server uri
2cbaf77 [Wang, Fei] Revert "hard code the server uri"
b64d91b [Wang, Fei] hard code the server uri

Authored-by: Wang, Fei <[email protected]>

Signed-off-by: Wang, Fei <[email protected]>
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