You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/02/18 03:19:04 UTC

[GitHub] [incubator-doris] yangzhg commented on a change in pull request #2921: diable column both in select list and aggregate functions when using GROUPING SETS/CUBE/ROLLUP

yangzhg commented on a change in pull request #2921: diable column both in select list and aggregate functions when using GROUPING SETS/CUBE/ROLLUP
URL: https://github.com/apache/incubator-doris/pull/2921#discussion_r380437220
 
 

 ##########
 File path: fe/src/test/java/org/apache/doris/utframe/AnotherDemoTest.java
 ##########
 @@ -111,19 +114,25 @@ public static void beforeClass() throws EnvVarNotSetException, IOException,
         Thread.sleep(5000);
     }
 
-    // generate all port from between 20000 ~ 30000
-    private static void getRandomPort() {
-        Random r = new Random(System.currentTimeMillis());
-        int basePort = 20000 + r.nextInt(9000);
-        fe_http_port = basePort + 1;
-        fe_rpc_port = basePort + 2;
-        fe_query_port = basePort + 3;
-        fe_edit_log_port = basePort + 4;
-
-        be_heartbeat_port = basePort + 5;
-        be_thrift_port = basePort + 6;
-        be_brpc_port = basePort + 7;
-        be_http_port = basePort + 8;
+    @AfterClass
+    public static void TearDown() {
+        try {
+            FileUtils.deleteDirectory(new File(runningDirBase));
+        } catch (IOException e) {
+        }
+    }
+
+    // generate all port from valid ports
+    private static void getPorts() {
 
 Review comment:
   those ports are class member of DemoTest, and getValidport method already in UtFrameUtils

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org