jerryshao commented on code in PR #4337:
URL: https://github.com/apache/gravitino/pull/4337#discussion_r1701138101


##########
integration-test-common/src/test/java/org/apache/gravitino/integration/test/util/CommandExecutor.java:
##########
@@ -47,10 +47,9 @@ public static Object executeCommandLocalHost(
       Map<String, String> env) {
     List<String> subCommandsAsList = new ArrayList<>(Arrays.asList(command));
     String mergedCommand = StringUtils.join(subCommandsAsList, " ");
-
     LOG.info("Sending command \"{}\" to localhost", mergedCommand);
 
-    ProcessBuilder processBuilder = new ProcessBuilder(command);
+    ProcessBuilder processBuilder = new ProcessBuilder(subCommandsAsList);

Review Comment:
   ```
   List<String> subCommandsAsList = new ArrayList<>(Arrays.asList(command));
   ```
   Why do we need to wrap a list again with ArrayList.



-- 
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]

Reply via email to