apache / apache/uniffle

[Umbrella] Fix UTs to use random port instead of constant port to avoid port in used

Open
#2,064 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
454
Forks
172
Avg merge
5d 17h
Merged PRs (30d)
5

Description

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

### Search before asking

- [X] I have searched in the [issues](https://github.com/apache/incubator-uniffle/issues) and found no similar issues.

### Describe the proposal

Run UTs may encounter port already bind exception if your test node run another uniffle or process with same port.

We can use random port instead of constant port.

### Task list

- [x] #2065
- [x] #2068

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the remaining work in the task list, especially issues #2065 and #2068, and inspect the unit tests that bind fixed ports. Reproduce the port-bind failure with another Uniffle or process using the same port, then confirm the affected tests use available random ports and pass reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.