https://bugs.openldap.org/show_bug.cgi?id=9345
Issue ID: 9345 Summary: Restarted consumer with syncprov may have empty cookie Product: OpenLDAP Version: 2.4.52 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
On a relatively fresh node with both syncrepl and syncprov, after some writes have occurred, if the consumer config is deleted and re-added, it's possible the consumer won't see the current cookie. On startup it checks the local database for contextCSN, but if syncprov has been caching cookie updates it may not have been written to the DB yet. (And on an older server, the contextCSN may be present in the DB, but stale relative to the state syncprov has cached.)
The consumer calls check_syncprov on subsequent iterations, but it ought to also call it on startup, just in case.
https://bugs.openldap.org/show_bug.cgi?id=9345
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • 57643b43 by Howard Chu at 2020-09-12T21:44:31+01:00 ITS#9345 syncrepl: call check_syncprov on freshly started consumer
• cfcf418c by Howard Chu at 2020-09-13T08:37:05+01:00 ITS#9345 disable test058 again
https://bugs.openldap.org/show_bug.cgi?id=9345
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.0
https://bugs.openldap.org/show_bug.cgi?id=9345
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • d63287e2 by Howard Chu at 2020-09-15T15:00:57+00:00 ITS#9345 fix for cmdline cookie
Previous commit could cause cmdline cookie to be ignored
https://bugs.openldap.org/show_bug.cgi?id=9345
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Target Milestone|2.5.0 |2.4.54 Resolution|TEST |FIXED
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE24:
commit 4dc974c5da00fd70570e7acf9d29ddcece0dd11b Author: Howard Chu hyc@openldap.org Date: Sat Sep 12 21:38:20 2020 +0100
ITS#9345 syncrepl: call check_syncprov on freshly started consumer