RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1898541 - Changelog cache can upload updates from a wrong starting point (CSN)
Summary: Changelog cache can upload updates from a wrong starting point (CSN)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: thierry bordaz
QA Contact: RHDS QE
Petr Hybl
URL:
Whiteboard: sync-to-jira
: 1972626 (view as bug list)
Depends On:
Blocks: 1921861 1972626 1972738
TreeView+ depends on / blocked
 
Reported: 2020-11-17 13:19 UTC by thierry bordaz
Modified: 2023-01-20 10:10 UTC (History)
11 users (show)

Fixed In Version: 389-ds-1.4-8050020210514191740-d5c171fc
Doc Type: Bug Fix
Doc Text:
.The replication session update speed is now enhanced Previously, when the changelog contained larger updates, the replication session started from the beginning of the changelog. This slowed the session down. The using of a small buffer to store the update from a changelog during the replication session caused this. With this update, the replication session checks that the buffer is large enough to store the update at the starting point. The replication session starts sending updates immediately.
Clone Of:
: 1921861 1972626 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:10:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4492 0 None closed Changelog cache can upload updates from a wrong starting point (CSN) 2021-02-21 18:37:31 UTC
Red Hat Product Errata RHBA-2021:4203 0 None None None 2021-11-09 18:11:08 UTC

Description thierry bordaz 2020-11-17 13:19:11 UTC
Description of problem:
Changelog cache is the mechanism that uploads a bulk of updates from the changelog.
The updates are consecutive (CSN order) updates from a given starting point.
The problem is that the bulk of updates can start from the beginning of the changelog even if the starting point CSN exists in the changelog.

The consequence is that the changelog cache will iterate through the all changelog to retrieve the next update to send. If the changelog is large it will delay the sent updates and create replication lag

The problem is not systematic.


Version-Release number of selected component (if applicable):


How reproducible:
No reproducer (ATM)

Actual results:
Replication lag on the consumer side, high cpu/IO on supplier side


Expected results:
No replication lag

Comment 4 thierry bordaz 2020-12-10 14:17:11 UTC
Upstream ticket https://github.com/389ds/389-ds-base/issues/4492

Comment 5 thierry bordaz 2020-12-14 10:10:19 UTC
Patch pushed upstream -> POST

Comment 23 Akshay Adhikari 2021-06-02 14:59:46 UTC
Build Tested: 389-ds-base-1.4.3.23-2.module+el8.5.0+11209+cb479c8d.x86_64.rpm

The fix is in the build. Marking as Verified: Tested, SanityOnly.

Comment 25 thierry bordaz 2021-06-17 13:00:42 UTC
*** Bug 1972626 has been marked as a duplicate of this bug. ***

Comment 30 errata-xmlrpc 2021-11-09 18:10:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (389-ds-base bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4203


Note You need to log in before you can comment on or make changes to this bug.