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

Fix ProcessBuilder to properly handle Java opts as a list #6772

Closed
wants to merge 1 commit into from

Conversation

lsm1
Copy link
Contributor

@lsm1 lsm1 commented Oct 22, 2024

🔍 Description

Issue References 🔗

Describe Your Solution 🔧

This PR addresses an issue in the ProcessBuilder class where Java options passed as a single string (e.g., "-Dxxx -Dxxx") do not take effect. The command list must separate these options into individual elements to ensure they are recognized correctly by the Java runtime.

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


Checklist 📝

Be nice. Be informative.

@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2024

Codecov Report

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

Project coverage is 0.00%. Comparing base (be66b49) to head (fb6d532).
Report is 25 commits behind head on master.

Files with missing lines Patch % Lines
.../apache/kyuubi/util/command/CommandLineUtils.scala 0.00% 53 Missing ⚠️
...apache/kyuubi/engine/jdbc/JdbcProcessBuilder.scala 0.00% 2 Missing ⚠️
...ache/kyuubi/engine/flink/FlinkProcessBuilder.scala 0.00% 1 Missing ⚠️
...apache/kyuubi/engine/hive/HiveProcessBuilder.scala 0.00% 1 Missing ⚠️
...ache/kyuubi/engine/trino/TrinoProcessBuilder.scala 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #6772    +/-   ##
=======================================
  Coverage    0.00%   0.00%            
=======================================
  Files         684     684            
  Lines       42281   43076   +795     
  Branches     5768    5877   +109     
=======================================
- Misses      42281   43076   +795     

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

Copy link
Contributor

@bowenliang123 bowenliang123 left a comment

Choose a reason for hiding this comment

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

LGTM.

@bowenliang123 bowenliang123 modified the milestones: v1.10.0, v1.9.3 Oct 23, 2024
bowenliang123 pushed a commit that referenced this pull request Oct 23, 2024
# 🔍 Description
## Issue References 🔗

## Describe Your Solution 🔧

This PR addresses an issue in the ProcessBuilder class where Java options passed as a single string (e.g., "-Dxxx -Dxxx") do not take effect. The command list must separate these options into individual elements to ensure they are recognized correctly by the Java runtime.

## 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

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6772 from lsm1/branch-fix-processBuilder.

Closes #6772

fb6d532 [senmiaoliu] fix process builder java opts

Authored-by: senmiaoliu <[email protected]>
Signed-off-by: Bowen Liang <[email protected]>
(cherry picked from commit f876600)
Signed-off-by: Bowen Liang <[email protected]>
bowenliang123 pushed a commit that referenced this pull request Oct 23, 2024
# 🔍 Description
## Issue References 🔗

## Describe Your Solution 🔧

This PR addresses an issue in the ProcessBuilder class where Java options passed as a single string (e.g., "-Dxxx -Dxxx") do not take effect. The command list must separate these options into individual elements to ensure they are recognized correctly by the Java runtime.

## 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

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6772 from lsm1/branch-fix-processBuilder.

Closes #6772

fb6d532 [senmiaoliu] fix process builder java opts

Authored-by: senmiaoliu <[email protected]>
Signed-off-by: Bowen Liang <[email protected]>
(cherry picked from commit f876600)
Signed-off-by: Bowen Liang <[email protected]>
@bowenliang123
Copy link
Contributor

Thanks, merged to master , branch-1.10 (1.10.0) and branch-1.9 (1.9.3).

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.

4 participants