``pt-table-checksum`` ``DIFF_ROWS`` was not computed correctly.

Description

DIFF_ROWS is never greater than zero, it seems. I would expect it to show an estimation of the max amount of rows that could have differences, but I couldn't make it have a value >0 even when deleting all rows in one of the slaves.

 

The relevant pieces of code seem to be:

 

 

How to reproduce:

1- set up replication sandbox

2- create table with data

3- delete all rows from the table in one of the slaves

4- run pt-table-checksum

 

Example output:

From the problematic slave:

Environment

None

AFFECTED CS IDs

265958

is FF-depended by

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Components

Affects versions

Fix versions

Story Points

Time tracking

7h logged

Sprint

Smart Checklist

Created September 15, 2019 at 9:04 PM
Updated February 29, 2024 at 9:02 PM
Resolved December 23, 2019 at 11:45 AM