You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/07/19 08:16:00 UTC

[jira] [Work logged] (HADOOP-18348) Echo java process's parent pid to the pid file intermediate state

     [ https://issues.apache.org/jira/browse/HADOOP-18348?focusedWorklogId=792496&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-792496 ]

ASF GitHub Bot logged work on HADOOP-18348:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Jul/22 08:15
            Start Date: 19/Jul/22 08:15
    Worklog Time Spent: 10m 
      Work Description: Pr-Jiang opened a new pull request, #4589:
URL: https://github.com/apache/hadoop/pull/4589

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   https://issues.apache.org/jira/browse/HADOOP-18348
   
   ### How was this patch tested?
   
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files?
   
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 792496)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>            Reporter: jiangrui
>            Priority: Major
>          Time Spent: 10m
>  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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org