lp://qastaging/~akopytov/percona-xtradb-cluster/bug1382797-5.6

Created by Alexey Kopytov and last modified
Get this branch:
bzr branch lp://qastaging/~akopytov/percona-xtradb-cluster/bug1382797-5.6
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

Branch information

Recent revisions

941. 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.

940. By Raghavendra D Prabhu

Bug#1396757 Exit early in case mysqld was killed prematurely

938. By Raghavendra D Prabhu

Bump the PERCONA_INNODB_VERSION version

937. By Raghavendra D Prabhu

Bug#1366997 Port fix of https://github.com/codership/mysql-wsrep/issues/18 from codership-git

936. By Raghavendra D Prabhu

Bug#1366997 Port fix of https://github.com/codership/mysql-wsrep/issues/18 from codership-git

935. By Raghavendra D Prabhu

Bump the version

934. By Raghavendra D Prabhu

Bug#1394836 Add support for innodb-undo-log directory

933. By Raghavendra D Prabhu

Bump the EXTRA version

932. By Raghavendra D Prabhu

Merge PS-5.6 upto revno 697

Branch metadata

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

Subscribers