https://bugs.openldap.org/show_bug.cgi?id=9641
Issue ID: 9641 Summary: accesslog when logging failed operations interferes with deltasync Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: replication Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: ondra@mistotebe.net Target Milestone: ---
Take delta-MPR setup and accesslog configured with logsuccess off. We encounter a conflicting write (one that fails to apply in the DB) and fall back to plain syncrepl. Since we are configured to log that write, syncprov sees it (it is a failure, so doesn't match filter, which should contain reqResult=0) and sends a LDAP_SYNC_NEW_COOKIE with that CSN to our delta-consumers. While we apply this write locally in the fallback session, the consumers will skip what they see as a duplicate and lose the change.
My understanding is that for failed operations, we should ignore the CSN we received with the operation and instead set up a new one (with our own sid).
https://bugs.openldap.org/show_bug.cgi?id=9641
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.7.0
https://bugs.openldap.org/show_bug.cgi?id=9641
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- https://git.openldap.org/openldap/openldap/-/merge_requests/385
https://bugs.openldap.org/show_bug.cgi?id=9641
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.7.0 |2.6.1
https://bugs.openldap.org/show_bug.cgi?id=9641
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Target Milestone|2.6.1 |2.6.0 Resolution|--- |FIXED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • 17394f38 by Ondřej Kuzník at 2021-09-05T14:33:59+00:00 ITS#9641 Grab a new local csn for failed ops
https://bugs.openldap.org/show_bug.cgi?id=9641
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• 845979d3 by Ondřej Kuzník at 2021-09-06T15:24:15+00:00 ITS#9641 Grab a new local csn for failed ops
https://bugs.openldap.org/show_bug.cgi?id=9641
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED