https://bugs.openldap.org/show_bug.cgi?id=10234
Issue ID: 10234 Summary: syncrepl does not reset the retrynum Product: OpenLDAP Version: 2.6.8 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hamano@osstech.co.jp Target Milestone: ---
``` syncrepl retry="5 10 30 +" ```
When replication fails with the above settings, syncrepl retries "10 times at 5 second intervals". Then, the retry count should be reset on the next replication failure.
In actual, it does not reset. The behavior is as follows:
``` (first time replication failure) do_syncrepl: rid=001 rc -1 retrying (9 retries left) do_syncrepl: rid=001 rc -1 retrying (8 retries left) (resume replication) (second time replication failure) do_syncrepl: rid=001 rc -1 retrying (7 retries left) do_syncrepl: rid=001 rc -1 retrying (6 retries left) ```
https://bugs.openldap.org/show_bug.cgi?id=10234
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.6.9 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10234
--- Comment #1 from marc.zimmermann@mmbash.de --- I can confirm the behavior:
Sep 24 22:09:40 XXXXX openldap[4822]: 66f31c84.1a405703 0x7f07a7e00700 do_syncrepl: rid=006 rc -1 retrying (4 retries left) Sep 25 00:29:29 XXXXX openldap[4822]: 66f33d49.02e445db 0x7f079dc00700 do_syncrepl: rid=006 rc -1 retrying (3 retries left) Sep 25 02:49:17 XXXXX openldap[4822]: 66f35e0d.27232b98 0x7f07a4c00700 do_syncrepl: rid=006 rc -1 retrying (2 retries left) Sep 25 05:09:06 XXXXX openldap[4822]: 66f37ed2.0fcb3450 0x7f07a7e00700 do_syncrepl: rid=006 rc -1 retrying (1 retries left) Sep 25 07:28:54 XXXXX openldap[4822]: 66f39f96.3404ee81 0x7f079dc00700 do_syncrepl: rid=006 rc -1 retrying Sep 25 09:48:43 XXXXX openldap[4822]: 66f3c05b.1ca84c9e 0x7f07a7e00700 do_syncrepl: rid=006 rc -1 quitting
Timout settings:
retry="5 5 300 5" timeout=1
https://bugs.openldap.org/show_bug.cgi?id=10234
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #2 from Howard Chu hyc@openldap.org --- (In reply to marc.zimmermann from comment #1)
I can confirm the behavior:
Sep 24 22:09:40 XXXXX openldap[4822]: 66f31c84.1a405703 0x7f07a7e00700 do_syncrepl: rid=006 rc -1 retrying (4 retries left) Sep 25 00:29:29 XXXXX openldap[4822]: 66f33d49.02e445db 0x7f079dc00700 do_syncrepl: rid=006 rc -1 retrying (3 retries left) Sep 25 02:49:17 XXXXX openldap[4822]: 66f35e0d.27232b98 0x7f07a4c00700 do_syncrepl: rid=006 rc -1 retrying (2 retries left) Sep 25 05:09:06 XXXXX openldap[4822]: 66f37ed2.0fcb3450 0x7f07a7e00700 do_syncrepl: rid=006 rc -1 retrying (1 retries left) Sep 25 07:28:54 XXXXX openldap[4822]: 66f39f96.3404ee81 0x7f079dc00700 do_syncrepl: rid=006 rc -1 retrying Sep 25 09:48:43 XXXXX openldap[4822]: 66f3c05b.1ca84c9e 0x7f07a7e00700 do_syncrepl: rid=006 rc -1 quitting
Timout settings:
retry="5 5 300 5" timeout=1
We've been waiting for feedback on the proposed fix in this merge request https://git.openldap.org/openldap/openldap/-/merge_requests/714 can you try that and report back?
https://bugs.openldap.org/show_bug.cgi?id=10234
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- • 2af486cf by Ondřej Kuzník at 2024-10-01T16:12:50+00:00 ITS#10234 Reinit retry state on refreshDone
https://bugs.openldap.org/show_bug.cgi?id=10234
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 --- RE26:
• 67bef41c by Ondřej Kuzník at 2024-10-04T22:08:03+00:00 ITS#10234 Reinit retry state on refreshDone