jenkinsci / jenkinsci/port-allocator-plugin
[JENKINS-16056] Numbered ports don't check whether the port is actually in use
- Dominant language
- Java
- Stars
- 11
- Forks
- 34
- Avg merge
- 23h 26m
- Merged PRs (30d)
- 1
Description
If you create a numbered TCP port (e.g. "9876", as opposed to a named port), then the plugin doesn't appear to actually check whether this port is free on the slave.
i.e. It only checks that no other builds are using the port.
Preferably, as with named ports, the actual availability of the port on the slave should be checked.
---
Originally reported by orrc, imported from: Numbered ports don't check whether the port is actually in use
Raw content of original issue
If you create a numbered TCP port (e.g. "9876", as opposed to a named port), then the plugin doesn't appear to actually check whether this port is free on the slave.
i.e. It only checks that no other builds are using the port.
Preferably, as with named ports, the actual availability of the port on the slave should be checked.
Contributor guide
Research direction
Start in the port-allocator-plugin code path for numbered TCP port allocation and compare it with the existing named-port availability check. Reproduce the issue by occupying a numbered port on a slave, then verify that allocation rejects the occupied port while retaining build-level reservation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100