This is an automated email from the ASF dual-hosted git repository.

maobaolong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


The following commit(s) were added to refs/heads/master by this push:
     new a669c2b5f [MINOR] fix(test): Fix flaky test for CoordinatorGrpcTest 
(#2324)
a669c2b5f is described below

commit a669c2b5f0f01f7c1586aeb08ffbbe44a6b4bbe7
Author: maobaolong <[email protected]>
AuthorDate: Mon Jan 6 16:51:20 2025 +0800

    [MINOR] fix(test): Fix flaky test for CoordinatorGrpcTest (#2324)
    
    ### What changes were proposed in this pull request?
    
    Fix flaky test for CoordinatorGrpcTest
    
    ### Why are the changes needed?
    
    Do some efforts to make CI getting more stable.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Existing UTs.
---
 .../org/apache/uniffle/test/CoordinatorGrpcTest.java    | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git 
a/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorGrpcTest.java
 
b/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorGrpcTest.java
index 4ccabdd75..cd63f4787 100644
--- 
a/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorGrpcTest.java
+++ 
b/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorGrpcTest.java
@@ -77,10 +77,8 @@ public class CoordinatorGrpcTest extends CoordinatorTestBase 
{
     ShuffleServerConf shuffleServerConf = 
getShuffleServerConf(ServerType.GRPC);
     shuffleServerConf.remove(ShuffleServerConf.NETTY_SERVER_PORT.key());
     createShuffleServer(shuffleServerConf);
-    shuffleServerConf.setInteger(
-        "rss.rpc.server.port", 
shuffleServerConf.getInteger(ShuffleServerConf.RPC_SERVER_PORT) + 1);
-    shuffleServerConf.setInteger(
-        "rss.jetty.http.port", 
shuffleServerConf.getInteger(ShuffleServerConf.JETTY_HTTP_PORT) + 1);
+    shuffleServerConf = getShuffleServerConf(ServerType.GRPC);
+    shuffleServerConf.remove(ShuffleServerConf.NETTY_SERVER_PORT.key());
     createShuffleServer(shuffleServerConf);
     startServers();
   }
@@ -161,8 +159,9 @@ public class CoordinatorGrpcTest extends 
CoordinatorTestBase {
     withEnvironmentVariables("RSS_ENV_KEY", storageTypeJsonSource)
         .execute(
             () -> {
-              
shuffleServerConf.remove(ShuffleServerConf.NETTY_SERVER_PORT.key());
-              ShuffleServer ss = new ShuffleServer((ShuffleServerConf) 
shuffleServerConf);
+              ShuffleServerConf tempShuffleServerConf = 
getShuffleServerConf(ServerType.GRPC);
+              
tempShuffleServerConf.remove(ShuffleServerConf.NETTY_SERVER_PORT.key());
+              ShuffleServer ss = new ShuffleServer(tempShuffleServerConf);
               ss.start();
               grpcShuffleServers.set(0, ss);
             });
@@ -304,11 +303,7 @@ public class CoordinatorGrpcTest extends 
CoordinatorTestBase {
     assertEquals(StorageStatus.NORMAL, infoHead.getStatus());
     assertTrue(node.getTags().contains(Constants.SHUFFLE_SERVER_VERSION));
     
assertTrue(scm.getTagToNodes().get(Constants.SHUFFLE_SERVER_VERSION).contains(node));
-    ShuffleServerConf shuffleServerConf = 
grpcShuffleServers.get(0).getShuffleServerConf();
-    shuffleServerConf.setInteger(
-        "rss.rpc.server.port", 
shuffleServerConf.getInteger(ShuffleServerConf.RPC_SERVER_PORT) + 2);
-    shuffleServerConf.setInteger(
-        "rss.jetty.http.port", 
shuffleServerConf.getInteger(ShuffleServerConf.JETTY_HTTP_PORT) + 1);
+    ShuffleServerConf shuffleServerConf = 
getShuffleServerConf(ServerType.GRPC);
     shuffleServerConf.set(ShuffleServerConf.STORAGE_MEDIA_PROVIDER_ENV_KEY, 
"RSS_ENV_KEY");
     String baseDir = 
shuffleServerConf.get(ShuffleServerConf.RSS_STORAGE_BASE_PATH).get(0);
     String storageTypeJsonSource = String.format("{\"%s\": \"ssd\"}", baseDir);

Reply via email to