[
https://issues.apache.org/jira/browse/HADOOP-18348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18036557#comment-18036557
]
ASF GitHub Bot commented on HADOOP-18348:
-----------------------------------------
github-actions[bot] closed pull request #4589: HADOOP-18348. Change
hadoop_start_daemon function $ to BASHPID
URL: https://github.com/apache/hadoop/pull/4589
> Echo java process's parent pid to the pid file intermediate state
> -----------------------------------------------------------------
>
> Key: HADOOP-18348
> URL: https://issues.apache.org/jira/browse/HADOOP-18348
> Project: Hadoop Common
> Issue Type: Bug
> Components: common
> Affects Versions: 3.3.1, 3.3.2, 3.3.3
> Reporter: jiangrui
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.3.1, 3.3.2, 3.3.3
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In hadoop-function.sh file,there is hadoop_start_daemon and
> hadoop_start_daemon_wrapper functions.
> hadoop_start_daemon_wrapper invoke hadoop_start_daemon and put it to
> background.
>
> In hadoop_start_daemon function, echo $$ > pidfile,cause this scenario
> because hadoop_start_daemon is in a subshell by ampersand, and $ expands to
> the process ID of the current shell, not the subshell.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]