lp://qastaging/~akopytov/percona-xtradb-cluster/bug1382797-5.6
- Get this branch:
- bzr branch lp://qastaging/~akopytov/percona-xtradb-cluster/bug1382797-5.6
Branch merges
- Raghavendra D Prabhu (community): Needs Fixing
- Alexey Kopytov (community): Needs Fixing
-
Diff: 266 lines (+111/-100)2 files modifiedsql/wsrep_utils.cc (+97/-100)
storage/innobase/os/os0proc.cc (+14/-0)
Related bugs
Related blueprints
Branch information
- Owner:
- Alexey Kopytov
- Status:
- Development
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. - 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
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