LP #1670902: Replication regression with RBR and partitioned tables

Description

**Reported in Launchpad by Juan Pablo Arruti last update 23-11-2017 12:06:20

There is a regression in replication performance in MySQL community 5.6 and 5.7 when using partitioned and large tables. Also, affects Percona Server 5.6 and 5.7.
In MySQL 5.5.35, large updates over partitioned and large tables are executed in slave instances at same speed than in master.
When executing same large updates in MySQL 5.6.35 or 5.7.17, replication performance slows down and slave instance gets behind master for a long time.
If I remove paritioning for this table in slave instance in MySQL 5.6 or 5.7, replication performance is the same as showed in MySQL 5.5.

I've attached a file with a procedure to reproduce this issue.

Requirements:

A) Master is using based row replication.

Procedure:

1) Create a partitioned and large table in MySQL 5.6, for example.

2) Insert random data in the table.

3) Execute large update in this table.

4) Check replication lag using show slave status. Compare replication performance with MySQL version 5.5 or with unpartitioned table.

Environment

None

Activity

lpjirasync 
January 21, 2018 at 5:26 AM

**Comment from Launchpad by: Yura Sorokin on: 23-11-2017 12:06:19

5.7 part fixed in upstream 5.7.20
Merge PR: https://github.com/percona/percona-server/pull/1984

lpjirasync 
January 21, 2018 at 5:26 AM

**Comment from Launchpad by: Yura Sorokin on: 09-11-2017 13:29:03

5.6 part fixed in upstream 5.6.38
Merge PR: https://github.com/percona/percona-server/pull/1968

lpjirasync 
January 21, 2018 at 5:26 AM

**Comment from Launchpad by: Jericho Rivera on: 09-03-2017 01:48:15

Setting as confirmed since upstream bug is verified.

lpjirasync 
January 21, 2018 at 5:26 AM

**Comment from Launchpad by: Juan Pablo Arruti on: 08-03-2017 03:47:05

Upstream bug link: https://bugs.mysql.com/bug.php?id=85352

lpjirasync 
January 21, 2018 at 5:26 AM

**Comment from Launchpad by: Laurynas Biveinis on: 08-03-2017 03:23:55

Is there an upstream bug?

Done

Details

Assignee

Reporter

Priority

Created January 21, 2018 at 5:25 AM
Updated January 21, 2018 at 5:26 AM
Resolved January 21, 2018 at 5:26 AM