United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8004145 build-infra: hgforest.sh cannot be interrupted safely.
JDK-8004145 : build-infra: hgforest.sh cannot be interrupted safely.

Details
Type:
Bug
Submit Date:
2012-11-29
Status:
Resolved
Updated Date:
2012-12-20
Project Name:
JDK
Resolved Date:
2012-12-18
Component:
infrastructure
OS:
Sub-Component:
build
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports

Sub Tasks

Description
When "sh get_source.sh" is used fetch the sources, it cannot be safely interrupted.
Even though mercurial has support for proper rollback on ctrl-c, the ctrl-c does not
reach the mercurial processes because of the way hgforest.sh spawns the background 
mercurial processes. This leaves the mercurial repositories in unsafe states, somtimes
locked sometimes broken. This is especially noticeable when cloning from locations
where the network is not fast.

The fix consists of tracking the background processes and sending -TERM to them,
when the user presses ctrl-c.

                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/build/rev/8e36a0fabf58
User:  ohrstrom
Date:  2012-12-18 09:04:35 +0000

                                     
2012-12-18
URL:   http://hg.openjdk.java.net/jdk8/jdk8/rev/8e36a0fabf58
User:  katleman
Date:  2012-12-19 23:49:11 +0000

                                     
2012-12-19



Hardware and Software, Engineered to Work Together