Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One java process was finishing with grpc port and other was quickly trying to pick that. But OS takes couple of mins in worst case to release it fully. Also Alpine lsof doesn't work (Need to use ss to find pid which was using that port)
Fixes # (issue)
Type of change
How Has This Been Tested?
Screenshots or Recordings
Documentation
Related PR's (If Any):
Note
Overhauls Iceberg writer port management with cooldown and ss-based PID detection; adds iproute2 to the image; updates Postgres CDC note.
portStatus
with cooldown to avoid reusing recently released ports; marks ports on close.FindAvailablePort
toFindAvailablePort(startPort)
; addsfindProcessUsingPort
preferringss
(fallback tolsof
).ss
/lsof
to find/kill conflicting PIDs; improved error handling and logging.utils/backoff
usage and deletesutils/backoff/backoff.go
.iproute2
forss
alongside Java 17.pgoutput
(markswal2json
deprecated).Written by Cursor Bugbot for commit da412d5. This will update automatically on new commits. Configure here.