Issue 9756 - syncprov_play_accesslog doesn't check minCSN properly
Summary: syncprov_play_accesslog doesn't check minCSN properly
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: overlays (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.10
Assignee: Ondřej Kuzník
URL:
Keywords: replication
Depends on:
Blocks:
 
Reported: 2021-11-29 17:27 UTC by Ondřej Kuzník
Modified: 2022-01-20 16:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ondřej Kuzník 2021-11-29 17:27:43 UTC
When asked to replay the accesslog database for a refresh delete, syncprov doesn't interpret the minCSN data correctly, resulting in:
- an inaccurate refresh if a purge removed some important data in the meantime
- potentially a very expensive query when consumer is actually up to date w.r.t. to some sids in our contextCSN
Comment 2 Quanah Gibson-Mount 2021-12-13 16:59:15 UTC
head:

  • 5357c9ef 
by Ondřej Kuzník at 2021-12-09T18:04:27+00:00 
ITS#9756 Generate a more accurate accesslog query
Comment 3 Quanah Gibson-Mount 2021-12-13 17:11:22 UTC
RE26:


  • a8906e47 
by Ondřej Kuzník at 2021-12-13T16:58:26+00:00 
ITS#9756 Generate a more accurate accesslog query
Comment 4 Quanah Gibson-Mount 2021-12-13 17:16:13 UTC
RE25:

  • 912a31bf 
by Ondřej Kuzník at 2021-12-13T17:14:41+00:00 
ITS#9756 Generate a more accurate accesslog query