# Exec\_Master\_Log\_Pos always behind Read\_Master\_Log\_Pos

**URL:** <https://forums.percona.com/t/exec-master-log-pos-always-behind-read-master-log-pos/28021>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [January 25, 2024, 9:57am UTC](https://forums.percona.com/t/exec-master-log-pos-always-behind-read-master-log-pos/28021 "2024-01-25T09:57:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Add](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/add/32/12867_2.png) [@Add](https://forums.percona.com/u/Add)\
**Post date:** [January 25, 2024, 9:57am UTC](https://forums.percona.com/t/exec-master-log-pos-always-behind-read-master-log-pos/28021/1 "2024-01-25T09:57:34Z")

</div>

I’m checking the health of the replication comparing Exec\_Master\_Log\_Pos and Read\_Master\_Log\_Pos. All is fine in general, except on the one node we have 8.0 instead of 5.7. Exec on that node absolutely never catches up, regardless of load. Hence the health is always shown as degraded.  
Seconds\_Behind\_Master is usually 0, but from time to time I can catch it at 1.

Is this something specific to 8.0, can I do anything about that, should I change the health check system, is it healthy in the end?

```auto
              Master_Log_File: mysql-bin.002557
          Read_Master_Log_Pos: 183729631
               Relay_Log_File: srv-relay-bin.001184
                Relay_Log_Pos: 183727785
        Relay_Master_Log_File: mysql-bin.002557
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 183727569
              Relay_Log_Space: 183730102

```

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [January 25, 2024, 3:21pm UTC](https://forums.percona.com/t/exec-master-log-pos-always-behind-read-master-log-pos/28021/2 "2024-01-25T15:21:38Z")

</div>

Hello @Add,  
Be sure to compare all global variables between 5.7 and 8.0 servers. Make sure you are using ROW-based replication. Other than that, check out the PMM dashboard for the Performance Schema on your 8.0 and see where you might be having wait issues.

---

<div class="post-metadata">

**Author:** ![Add](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/add/32/12867_2.png) [@Add](https://forums.percona.com/u/Add)\
**Post date:** [January 26, 2024, 9:55am UTC](https://forums.percona.com/t/exec-master-log-pos-always-behind-read-master-log-pos/28021/3 "2024-01-26T09:55:21Z")

</div>

These are the differences (usually the defaults between those 2 versions):

> **[DB diff - Diffchecker](https://www.diffchecker.com/nNbit9n7/)**
>
> DB diff - auto\_generate\_certs	ON
> auto\_increment\_increment	1
> auto\_increment\_offset	1
> autocommit	ON
> automatic\_sp

Replication is ROW based, I haven’t PMM installed.
