You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/07/11 12:56:39 UTC

[Bug 55239] New: Apache Graceful restart issue

https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

            Bug ID: 55239
           Summary: Apache Graceful restart issue
           Product: Apache httpd-2
           Version: 2.2.22
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mpm_worker
          Assignee: bugs@httpd.apache.org
          Reporter: akshay.ballarpure@nsn.com

Hi,
We are facing an issue during Apache graceful restart meaning some of the child
httpd process are not getting restarted sometime on graceful restart.

After putting below below fix in prefork.c, we are not seeing issue.


static void clean_child_exit(int code)
{
    //below code added to fix graceful restart
    //fix start
    apr_signal(SIGHUP, SIG_IGN);
    apr_signal(SIGTERM, SIG_IGN);
    apr_signal(SIGUSR1, SIG_IGN);
    apr_signal(AP_SIG_GRACEFUL, SIG_IGN);
    // fix end

    mpm_state = AP_MPMQ_STOPPING;

    if (pchild) {
        apr_pool_destroy(pchild);
    }
    ap_mpm_pod_close(pod);
    chdir_for_gprof();
    exit(code);
}


However we would like to know if there is any impact with this changes.

your urgent reply is appreciated.

Thanks,
Akshay

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #4 from aks <ak...@nsn.com> ---
Can you please update us?


Regards,
Akshay

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #7 from Eric Covener <co...@gmail.com> ---
Blocking signals makes them _not_ hang?   How long?

Can you get a series of backtraces from one that's hanging and post it here?  

Does the server respond to new requests while some processes hang?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #9 from aks <ak...@nsn.com> ---
Can you please update us .Thanks



Regards,
Akshay

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #1 from aks <ak...@nsn.com> ---
Can you please provide an update on the below?

Thanks,
Akshay

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #6 from aks <ak...@nsn.com> ---
Can you please update us?  thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #12 from Rainer Jung <ra...@kippdata.de> ---


*** This bug has been marked as a duplicate of bug 49504 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #10 from Eric Covener <co...@gmail.com> ---
You haven't provided any detail describing a bug. At the very least, answer the
previous quesions about how long the processes linger, what state they're in
after the restart (pstack).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

aks <ak...@nsn.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |akshay.ballarpure@nsn.com

--- Comment #11 from aks <ak...@nsn.com> ---
Created attachment 30649
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30649&action=edit
pstack and pfiles o/p of lingering process

hello,
I am attaching here pstack and pfiles o/p for lingering process.
We are seeing process lingered for more than a week.


Regards,
Akshay

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #8 from aks <ak...@nsn.com> ---
all child httpd plus fast cgi processes will be killed immediately and started
new processes on graceful restart.

you meant pstack and pfiles o/p on hanged processes ?

Apache/FCGI server were able to respond to new request for 6 hours after
graceful restart.

Regards,
Akshay

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #5 from aks <ak...@nsn.com> ---

We are now ignoring all the signals while cleaning up resources. please let us
know if any issue with these changes? Thanks .

static void clean_child_exit(int code)
{
    sigset_t mask;
    sigfillset(&mask);
    sigprocmask(SIG_SETMASK, &mask, NULL);

    /*apr_signal(SIGHUP, SIG_IGN);
    apr_signal(SIGTERM, SIG_IGN);
    apr_signal(SIGUSR1, SIG_IGN);
    apr_signal(AP_SIG_GRACEFUL, SIG_IGN);*/

    ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "AKS:exiting %d process",
getpid()); 
    mpm_state = AP_MPMQ_STOPPING;

    if (pchild) {
        apr_pool_destroy(pchild);
    }
    ap_mpm_pod_close(pod);
    chdir_for_gprof();
    exit(code);
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #2 from Eric Covener <co...@gmail.com> ---
Can you clarify the problem? Children are not restarted during a graceful
restart. They're replaced by new processes and allowed to exit when they're
ready.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55239] Apache Graceful restart issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #3 from aks <ak...@nsn.com> ---
I meant some processes are getting hang for sometime ( here i am not sure about
timing)

Can you clarify below statement?
They're replaced by new processes and allowed to exit when they're ready.

how much time it will take for them to exit ?

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org