Skip to content

Commit 5906717

Browse files
committed
Workaround to avoid a hard shutdown when testing the release
When running the release on a Docker container with Debian, the start-stop-daemon is not able to send the HUP signal to the Gerrit JVM, causing the shutdown of the server with a KILL signal. Ending the JVM execution following a KILL does not respect the operations triggered during the shutdown sequence, including also the flushing of Lucene in-memory data. The result of using start-stop-daemon is therefore the disappearance of the changes created just before the shutdown, which was making the gerrit-upgrade-test.sh fail. Bug: Issue 450577969 Change-Id: Ia2c6bac3f1d8ed798a277f4e78e2cf29b627d7b3
1 parent 00c9581 commit 5906717

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jenkins-docker/agent-release/gerrit-upgrade-test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export gerritReleasesUrl=https://gerrit-releases.storage.googleapis.com
2323
export previousVersionWar=gerrit-$1.war
2424
export nextVersionWar=gerrit-$2.war
2525

26+
# Disable the use of start-stop-daemon because of the inability to stop
27+
# Gerrit gracefully when running it on Docker.
28+
# See Issue 450577969
29+
export START_STOP_DAEMON=0
30+
2631
function downloadGerritWar
2732
{
2833
if checkWar $1

0 commit comments

Comments
 (0)