Bug 1071379
| Summary: | CTRL+C doesn't shutdown server when running in console mode on Windows | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
| Component: | Launch Scripts | Assignee: | Jay Shaughnessy <jshaughn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.2, JON 3.2.1 | CC: | jshaughn, loleary, skondkar, tsegismo |
| Target Milestone: | ER04 | Keywords: | Reopened, TestCaseNeeded |
| Target Release: | JON 3.3.0 | ||
| Hardware: | All | ||
| OS: | Windows | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-11 14:00:43 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Larry O'Leary
2014-02-28 15:58:05 UTC
I couldn't reproduce this on Win7. I started server with:
> rhqctl console --server
Using 64-bit Java7.
The Java process went away as expected after the CTL-C and
Terminate batch job <Y/N>? ( pressed Y)
Setting to ON_QA
ON_QA doesn't make any sense. No fix was performed. Assigning to Jay and marking as CLOSED WORKSFORME as per comment 1. If QE/Sunil/Jay believe this bug is still valid, please re-open with more details. I'm actually going to re-open this, now I'm not so sure I didn't end up with a rogue wrapper process...
master commit f46c56be49e97add1bd8e4d6cf0c78d5df6c1aed
Author: Jay Shaughnessy <jshaughn>
Date: Tue Sep 16 11:58:00 2014 -0400
Rhqctl was actually the program running in the foreground
when the 'rhqctl console --server' command was issued. The JSW and Server
processes were also running, but in the background. When issuing a
CTRL-C it was actually rhqctl that was getting interrupted and killed. The
CTRL-C was not reaching the wrapper, or the server. This got a little
infuriating because even if you manually killed the Server, the wrapper
would detect the "crasg" and then spin up a new server process :) So, to
recover you needed to manually kill the wrapper.exe process, and then
manually kill the RHQ Server process.
With the fix we now launch a new cmd window for the Server (asynchronously,
via the Windows start command) which allows rhqctl to complete and exit.
The wrapper is now running in the foreground of the new window, and CTRL-C
is handled as expected by JSW (shutdown), as is double CTRL-C (immediate
shutdown).
Analogous work done for --storage. Note that we don't support 'rhqctl
console --agent' and already direct users to run rhq-agent.bat directly.
release/jon3.3.x commit bc60b86e0c61495db9e6b818363ff2b65151db98
Author: Jay Shaughnessy <jshaughn>
Date: Tue Sep 16 11:58:00 2014 -0400
(cherry picked from commit f46c56be49e97add1bd8e4d6cf0c78d5df6c1aed)
Signed-off-by: Jay Shaughnessy <jshaughn>
Moving to ON_QA as available for test with build: https://brewweb.devel.redhat.com/buildinfo?buildID=388959 Verified on JON3.3 ER04 on Windows 2008. rhqctl.bat console --server opens a new cmd windows and <CTRL+C> in the new cmd windows works. |