Created by Alexey Kopytov and last modified
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

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

Update documentation

833. By Raghavendra D Prabhu

Remove redundant make

832. By Raghavendra D Prabhu

Revert the shared-lib changes

831. By Raghavendra D Prabhu

 Add new Provides

830. By Raghavendra D Prabhu

Merge documentation updates

829. By Raghavendra D Prabhu

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

828. By Raghavendra D Prabhu

Fix mysqld-debug build

827. By Raghavendra D Prabhu

Fix the cmake

826. By Raghavendra D Prabhu

Merge documentation changes

Branch metadata

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