kangkaisen 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_r380139994
########## 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: We could move this method to `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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org