joewitt opened a new pull request, #12000: URL: https://github.com/apache/nifi/pull/12000
# Summary [NIFI-16666](https://issues.apache.org/jira/browse/NIFI-16666) System test NiFi instances intermittently fail to start with `Management Server start failed` caused by `java.net.BindException: Address already in use`. The `bootstrap.conf` files under `nifi-system-tests/nifi-system-test-suite/src/test/resources/conf` set `management.server.address` to ports 56710 (clustered node1), 56720 (clustered node2) and 56730 (default and pythonic). These ports are inside the operating system's ephemeral range, 32768 to 60999 on Linux and 49152 to 65535 on macOS. Another process, including a connection made by the test run itself, can take the port before NiFi binds it. Failures seen in `system-tests` run [46943095859](https://github.com/apache/nifi/actions/runs/46943095859) on pull request #11995, both on ubuntu-24.04 Java 25: - `SelectiveDropConnectorIT.testSelectiveDropOnConnectorStop`: `Failed to start NiFi`, with `Management Server start failed` and `BindException` in `nifi-app.log` - `ClusterStateKeyDropIT.testClearAllStateWithEmptyPayload` on the rerun: `Failed to start 1 NiFi instance(s)`, with the same error on node-2 Neither test involves cluster coordination. This change moves the management server ports to 5675 (clustered node1), 5676 (clustered node2) and 5677 (default and pythonic). These are below the ephemeral range and next to the web ports the tests already use (5670 to 5673). No other file in `nifi-system-tests` refers to them. The default Runtime Management Server address in a standard installation uses port 52020, which is also in the ephemeral range. That is not changed here. # Tracking Please complete the following tracking steps prior to pull request creation. ### Issue Tracking - [x] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created ### Pull Request Tracking - [x] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000` - [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000` - [x] Pull request contains [commits signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) with a registered key indicating `Verified` status ### Pull Request Formatting - [x] Pull Request based on current revision of the `main` branch - [x] Pull Request refers to a feature branch with one commit containing changes # Verification Please indicate the verification steps performed prior to pull request creation. ### Build - [ ] Build completed using `./mvnw clean install -P contrib-check` - [ ] JDK 21 - [ ] JDK 25 Not applicable: the change is limited to four test configuration files. ### Verification performed - [x] Searched `nifi-system-tests` for uses of ports 5675, 5676 and 5677 and found only the four changed lines - [x] The system-tests workflow on this pull request exercises the new ports. The failure is intermittent, so a passing run does not by itself show the problem is gone. ### Licensing - [ ] New dependencies are compatible with the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License Policy](https://www.apache.org/legal/resolved.html) - [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` files Not applicable: no dependencies are added or changed. ### Documentation - [ ] Documentation formatting appears as expected in rendered files Not applicable: no documentation is changed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
