lp:~akopytov/percona-xtradb-cluster/bug1382797-5.5

Created by Alexey Kopytov on 2014-12-04 and last modified on 2014-12-08
Get this branch:
bzr branch lp:~akopytov/percona-xtradb-cluster/bug1382797-5.5
Only Alexey Kopytov can upload to this branch. If you are Alexey Kopytov please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Recent revisions

835. By Alexey Kopytov on 2014-12-08

Bug #1382797: Modify SST code to use fork()/exec() to allow cleanup on
              fatal signals
Bug #1399175: Incorrect POSIX_SPAWN_SETSIGDEF usage in wsrep_utils.cc

Modified wsp::process() to use fork()/exec() instead of posix_spawn() to
have more control on the child process. More specifically:

- the child process now calls prctl() with appropriate arguments (if
  available) before calling exec() so that the SIGTERM signal is
  received by it in case the parent process (i.e. mysqld) is terminated
  either gracefully or ungracefully.

- the child process also call setsid() to create a new session and a
  process group. This is to simplify killing all spawned processes at
  once for child processes. Instead of keeping track of all processes
  started by an SST script and sending termination signals to the
  individually, an SST script can simply kill the entire process group.

Additionally, an optimization to speed up fork() has been implemented to
reduce page table copying overhead as compared to vfork() /
posix_spawn(). Since the InnoDB buffer pool is the major part of mysqld
RSS in most installations, use madvise(..., MADV_DONTFORK) to exclude
buffer pool from memory available to the child on fork().

This revision also fixes bug #1399175 as a side effect, since all code
related to the posix_spawn*() family of functions is replaced.

834. By Raghavendra D Prabhu on 2014-11-29

Update documentation

833. By Raghavendra D Prabhu on 2014-10-06

Remove redundant make

832. By Raghavendra D Prabhu on 2014-10-02

Revert the shared-lib changes

831. By Raghavendra D Prabhu on 2014-10-02

 Add new Provides

830. By Raghavendra D Prabhu on 2014-10-02

Merge documentation updates

829. By Raghavendra D Prabhu on 2014-10-02

PXC-163: Remove the conflicts with Percona-XtraDB-Cluster-shared-56

828. By Raghavendra D Prabhu on 2014-09-06

Fix mysqld-debug build

827. By Raghavendra D Prabhu on 2014-09-06

Fix the cmake

826. By Raghavendra D Prabhu on 2014-09-06

Merge documentation changes

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:percona-xtradb-cluster
This branch contains Public information 
Everyone can see this information.

Subscribers