[
https://issues.apache.org/jira/browse/GEODE-8772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17270312#comment-17270312
]
ASF subversion and git services commented on GEODE-8772:
--------------------------------------------------------
Commit 964051b7029d73ee4e6bed96f30e0fd3ee23bb79 in geode's branch
refs/heads/develop from Dale Emery
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=964051b ]
GEODE-8772: Make tests assign ports (#5935)
* GEODE-8772: Make tests assign ports
Some tests in ManagementRequestLoggingDistributedTest and
RestAPIsAndInterOpsDUnitTest were using the default JMX port (1099).
Some tests in TombstoneDUnitTest were using the default cache server
port (40404). When these tests run in parallel outside of docker, they
can fail to bind these ports if another test has already bound them.
These tests now assign ports via AvailablePortHelper.
Authored-by: Dale Emery <[email protected]>
* Make LocatorTestBase assign JMX port
* Restore use of jmx port "0" in REST API tests
Fixing an inadvertent change of a non-default port.
* Remove unused code
> Avoid using default ports in tests [PERMANENT]
> ----------------------------------------------
>
> Key: GEODE-8772
> URL: https://issues.apache.org/jira/browse/GEODE-8772
> Project: Geode
> Issue Type: Test
> Components: tests
> Affects Versions: 1.14.0
> Reporter: Dale Emery
> Assignee: Dale Emery
> Priority: Major
> Labels: GeodeOperationAPI, pull-request-available
>
> Many distributed tests and upgrade tests (and sometimes others) launch
> members with default ports, especially for JMX (1099) and HTTP service
> (7070). When run in parallel outside of docker, these tests often fail
> because the default port is already in use in another test.
> Except when specifically testing the product's use of the defaults, every
> test should assign ports known to be available. For many tests, we can
> accomplish this by changing the test framework to assign available ports.
> Other tests may require changes in the test code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)