[ https://issues.apache.org/jira/browse/HIVE-8965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14225351#comment-14225351 ]
Brock Noland commented on HIVE-8965: ------------------------------------ The code executes {{pkill -f java}} then {{pkill -9 -f java}}: {noformat} execHostsIgnoreErrors("pkill -f java"); execHostsIgnoreErrors("pkill -9 -f java"); {noformat} but it shoulds out the oppose in the output file since the commands are sorted: {noformat} protected String getExecutedCommands() { List<String> result = Lists.newArrayList(); result.addAll(returnNotNull(sshCommandExecutor.getCommands())); result.addAll(returnNotNull(localCommandFactory.getCommands())); result.addAll(returnNotNull(rsyncCommandExecutor.getCommands())); Collections.sort(result); return Joiner.on("\n").join(result); } {noformat} We do that because we first tell the processes to terminate normally and then if they do not we force kill them. > Enhance PTest to kill all processes between tests and to report when a > TEST*.xml file is not generated > ------------------------------------------------------------------------------------------------------ > > Key: HIVE-8965 > URL: https://issues.apache.org/jira/browse/HIVE-8965 > Project: Hive > Issue Type: Bug > Reporter: Brock Noland > Assignee: Brock Noland > Attachments: HIVE-8965.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)