[Date Prev][Date Next]
(ITS#4952) null CSN due to CSN length mismatch in updateCookie
Full_Name: Donn Cave
OS: Red Hat RHEL 3
Submission from: (NULL) (18.104.22.168)
syncrepl_updateCookie finds CSN values in syncCookie and si->si_cookieState.
Numerically, the syncCookie CSN is lesser, but it compares greater because it's
Eventually slap_queue_csn() gets a null CSN, and slapd aborts.
I am pretty sure the former explains the latter. The only thing that doesn't
fit is that gdb reports "j" == 20936000, where I expect 0, but I think
everything else adds up - numcsns is 1, cs_num is 1, the two sids are the same
Evidently this format difference is entryCSN vs. contextCSN. The unusual order
may be due to entries modified in the master with explicit entryCSN values. I
guess that's not supported, but it seems to have exposed a bug here - I assume
you want a comparison between dates, not format lengths.
To reproduce (I'm guessing): modify master directory with explicit entryCSN
values that are later than its contextCSN.