ArafatKhan2198 commented on code in PR #5782:
URL: https://github.com/apache/ozone/pull/5782#discussion_r1428001881
##########
hadoop-hdds/test-utils/src/main/java/org/apache/ozone/test/GenericTestUtils.java:
##########
@@ -53,6 +54,9 @@
*/
public abstract class GenericTestUtils {
+ private static final int MIN_PORT = 15000;
+ private static final int MAX_PORT = 32000;
+ private static final AtomicInteger NEXT_PORT = new AtomicInteger(MIN_PORT);
Review Comment:
Removed it!
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java:
##########
@@ -92,9 +92,6 @@
import static
org.apache.hadoop.hdds.recon.ReconConfigKeys.OZONE_RECON_HTTP_ADDRESS_KEY;
import static
org.apache.hadoop.hdds.recon.ReconConfigKeys.OZONE_RECON_TASK_SAFEMODE_WAIT_THRESHOLD;
import static
org.apache.hadoop.hdds.scm.ScmConfig.ConfigStrings.HDDS_SCM_INIT_DEFAULT_LAYOUT_VERSION;
-import static
org.apache.hadoop.ozone.MiniOzoneCluster.PortAllocator.anyHostWithFreePort;
-import static
org.apache.hadoop.ozone.MiniOzoneCluster.PortAllocator.getFreePort;
-import static
org.apache.hadoop.ozone.MiniOzoneCluster.PortAllocator.localhostWithFreePort;
Review Comment:
Done!
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneHAClusterImpl.java:
##########
@@ -57,8 +57,6 @@
import static java.util.Collections.singletonList;
import static org.apache.hadoop.hdds.HddsConfigKeys.OZONE_METADATA_DIRS;
import static
org.apache.hadoop.hdds.scm.ScmConfig.ConfigStrings.HDDS_SCM_INIT_DEFAULT_LAYOUT_VERSION;
-import static
org.apache.hadoop.ozone.MiniOzoneCluster.PortAllocator.getFreePort;
-import static
org.apache.hadoop.ozone.MiniOzoneCluster.PortAllocator.localhostWithFreePort;
Review Comment:
Done!
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]