https://bugs.openldap.org/show_bug.cgi?id=9513
Issue ID: 9513 Summary: Enhanced debug output Product: OpenLDAP Version: 2.5 Hardware: All OS: All Status: UNCONFIRMED Severity: enhancement Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
While debugging ITS#9479 I needed more information on which threads were doing what actions. Also, when looking for delays/hangs/race conditions, the 1-second granularity of the debug msg timestamp was inadequate. And also, some of the debug output for the Search operation was being done in separate Debug calls for a single line of output. This gets jumbled up pretty badly if other threads are printing output as well.
New patch set will extend the debug timestamp to have fractional seconds too; it will use clock_gettime for nanosecond resolution if available, otherwise use gettimeofday for microsecond resolution. Also tweak the Search debug output to only use one Debug invocation per line of output.
This is MR!279.
https://bugs.openldap.org/show_bug.cgi?id=9513
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.3 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Assignee|bugs@openldap.org |hyc@openldap.org
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- • 01e5664c by Howard Chu at 2021-03-31T18:53:50+00:00 ITS#9513 Cleanup debug output
Avoid splitting single lines across multiple Debug invocations
• 9ac3909e by Howard Chu at 2021-03-31T18:53:50+00:00 ITS#9513 Intercept liblber error printer
And add time and thread ID prefix to all debug output
• 94fbd968 by Howard Chu at 2021-03-31T18:53:50+00:00 ITS#9513 Change all lutil time structs to use nanoseconds
Instead of microseconds
https://bugs.openldap.org/show_bug.cgi?id=9513
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED
https://bugs.openldap.org/show_bug.cgi?id=9513
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • 9624bb5a by Howard Chu at 2021-04-23T17:10:02+01:00 ITS#9513 fix prev commit
https://bugs.openldap.org/show_bug.cgi?id=9513
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.5.3 |2.5.4