Bug #9091
closedThe "rudder" init script tries to stop slapd before jetty
Description
See:
root@amnesiac:~# service rudder stop Stopping Rudder services: * rudder-slapd...>HERE<OK * postgresql... OK * rudder-jetty... OK * rudder-agent... OK
The symptom here is that I tried to stop Rudder on a quite busy system, and the script stopped at the ">HERE<" on the previous sample.
The reason was that when we run service rudder-slapd stop (it is the case here), the script runs a slapcat to backup the configuration before halting slapd. In this case, the slapcat seemed to be stuck (hogging a lot of CPU ressources), but as soon as I brutally killed rudder-jetty, it completed and carried on with the other steps.
I assume that the slapcat does not handle well heavy concurrent access to the database, and I feel that the solution here is quite simple: we should never stop a provider (database) before its consumers (Jetty). The reason is, that the provider may get stuck waiting for the consumer to stop sending requests before halting to halt in a clean / consistent way.
We should probably stop rudder-jetty and rudder-agent before rudder-slapd and postgresql ?
Updated by Matthieu CERDA about 8 years ago
- Status changed from New to In progress
- Assignee set to Matthieu CERDA
Updated by Matthieu CERDA about 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Matthieu CERDA to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1083
Updated by Matthieu CERDA about 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|d9a345705e52accf0529cd792eed6a9fa5f5aa7b.
Updated by Vincent MEMBRÉ about 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.15/14 and 3.2.8/7 which were released today.
- 3.1: Announce Changelog
- 3.2: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/