relay: update lag on any acked txn
Not only for own txns, but also on the txns authored by other instances. Note that the lag isn't updated when the replica got new txns from another master. The lag still only reflects the replication between this relay and its specific applier. The motivation is that otherwise the lag sometimes shows irrelevant things, like that the replica is very outdated, while it keeps replicating just fine. Only not txns of this specific master, who might even turned into a replica itself already. Closes #9748 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9748-downstream-lag-bug.md 4 additions, 0 deletionschangelogs/unreleased/gh-9748-downstream-lag-bug.md
- src/box/applier.cc 5 additions, 0 deletionssrc/box/applier.cc
- src/box/relay.cc 1 addition, 2 deletionssrc/box/relay.cc
- test/replication-luatest/gh_9748_downstream_lag_test.lua 117 additions, 1 deletiontest/replication-luatest/gh_9748_downstream_lag_test.lua
Loading
Please register or sign in to comment