https://bugs.openldap.org/show_bug.cgi?id=9720
Issue ID: 9720 Summary: accesslog mincsn needs initialization Product: OpenLDAP Version: 2.5.8 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: overlays Assignee: bugs@openldap.org Reporter: quanah@openldap.org Target Milestone: ---
As reported on the -technical list, if using slapcat/slapadd to migrate an accesslog db from 2.4 to 2.5, the mincsn attribute will not be initialized causing a segfault on startup.
https://bugs.openldap.org/show_bug.cgi?id=9720
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.9
https://bugs.openldap.org/show_bug.cgi?id=9720
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |ondra@mistotebe.net
https://bugs.openldap.org/show_bug.cgi?id=9720
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=9720
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://lists.openldap.org/ | |hyperkitty/list/openldap-te | |chnical@openldap.org/messag | |e/YPEKIZENLCU742C2JL32KMI6A | |VVTSVEK/
https://bugs.openldap.org/show_bug.cgi?id=9720
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- accesslog_db_root already sets mincsn to contextCSN if it's missing. This happens because a purge can run before accesslog_db_root has had a chance to run in full.
https://bugs.openldap.org/show_bug.cgi?id=9720
--- Comment #2 from Ondřej Kuzník ondra@mistotebe.net --- Ideally, we'd like to postpone startup until accesslog_db_root has finished but that is set up as a task and as such it needs to wait until startup. We'll have to schedule the purge task after we're open (and actually stop it when we're stopping the overlay) and not deal with operations that come in before the first time accesslog_db_root has run on an upgraded DB.
https://bugs.openldap.org/show_bug.cgi?id=9720
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #3 from Ondřej Kuzník ondra@mistotebe.net --- https://git.openldap.org/openldap/openldap/-/merge_requests/427
https://bugs.openldap.org/show_bug.cgi?id=9720
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 8f35dc45 by Ondřej Kuzník at 2021-10-21T12:10:14+01:00 ITS#9720 Manage the purge task properly
• 6ca85aa3 by Ondřej Kuzník at 2021-10-21T12:10:34+01:00 ITS#9720 Import missing minCSNs from inside DB
https://bugs.openldap.org/show_bug.cgi?id=9720
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
• 3534bfc9 by Ondřej Kuzník at 2021-10-25T16:40:54+00:00 ITS#9720 Manage the purge task properly
• 2c587573 by Ondřej Kuzník at 2021-10-25T16:43:50+00:00 ITS#9720 Import missing minCSNs from inside DB
https://bugs.openldap.org/show_bug.cgi?id=9720
--- Comment #6 from Quanah Gibson-Mount quanah@openldap.org --- RE25:
• c4a497f5 by Ondřej Kuzník at 2021-10-25T16:49:42+00:00 ITS#9720 Manage the purge task properly
• 6a8cb947 by Ondřej Kuzník at 2021-10-25T16:54:33+00:00 ITS#9720 Import missing minCSNs from inside DB
https://bugs.openldap.org/show_bug.cgi?id=9720
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED