After looking at the code for a couple of days, I finally see how the difference is calculated:

Delta = Max Consumer CSN - Max Agreement CSN

Thus, instead of the max CSN of the RUV, the agreement's maxcsn is used?

My question now is: what’s the difference between the maxcsn of the agreement and the maxcsn in the RUV?

Thanks!
  Sergei


On Oct 29, 2017, at 10:36 AM, Sergei Gerasenko <gerases@gmail.com> wrote:

Hi,

I’m using the repl-monitor script and I’m not sure the output I’m getting is right. If you look at the attached image, you will see that the supplier replica (122) is at "10/28/2017 23:37:06”. The supplier column correctly lists the supplier. But the Supplier Max CSN column doesn’t use the max CSN in the master header (10/28/2017 23:37:06). Instead it uses the Max CSN of the supplier local to the consumer?

According to the screenshot, the lag is 0 secs. But the lag is actually 10/28/2017 23:37:06 minus 10/27/2017 21:54:14?

Thanks,
  Sergei

<Screen Shot 2017-10-29 at 10.26.42 AM.png>