https://bugs.openldap.org/show_bug.cgi?id=9537
Issue ID: 9537 Summary: slap_timestamp() can give a duplicated timestamp across restarts Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: ondra@mistotebe.net Target Milestone: ---
On busy sites, when a slapd restart takes <1s, accesslog can fail to log changes with LDAP_ALREADY_EXISTS. This is because slap_timestamp() only logs timestamps with a 1s precision, disambiguating the rest with a counter that's forgotten across restarts.
It is possible my analysis in ITS#9487 is partially invalidated because of this.
https://bugs.openldap.org/show_bug.cgi?id=9537
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs_review
https://bugs.openldap.org/show_bug.cgi?id=9537
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|slap_timestamp() can give a |slap_op_time() can give a |duplicated timestamp across |duplicated timestamp across |restarts |restarts
https://bugs.openldap.org/show_bug.cgi?id=9537
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #1 from Howard Chu hyc@openldap.org --- fixed in master
https://bugs.openldap.org/show_bug.cgi?id=9537
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • 145325dc by Howard Chu at 2021-04-27T17:10:51+01:00 ITS#9537 slap_op_time: avoid duplicates across restarts
https://bugs.openldap.org/show_bug.cgi?id=9537
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.5.5
https://bugs.openldap.org/show_bug.cgi?id=9537
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- *** Issue 9487 has been marked as a duplicate of this issue. ***
https://bugs.openldap.org/show_bug.cgi?id=9537
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED