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 1103337 - find a way to remove replication plugin errors messages "changelog iteration code returned a dummy entry with csn %s, skipping ..."
Summary: find a way to remove replication plugin errors messages "changelog iteration ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: pre-dev-freeze
: 6.6
Assignee: Noriko Hosoi
QA Contact: Sankar Ramalingam
URL:
Whiteboard:
Depends On:
Blocks: 1108405
TreeView+ depends on / blocked
 
Reported: 2014-05-30 19:04 UTC by Marc Sauton
Modified: 2020-09-13 21:06 UTC (History)
6 users (show)

Fixed In Version: 389-ds-base-1.2.11.15-34.el6
Doc Type: Bug Fix
Doc Text:
Cause: Message "changelog iteration code returned a dummy entry with csn %s, skipping ..." is coded as an error level, which should not be. Consequence: Once the server runs into the state, the benign error is logged in the error log repeatedly. Fix: Changed the log level to replication log level. Result: Unless the log level is set to the replication log level, the message is not logged in the error log.
Clone Of:
: 1108405 (view as bug list)
Environment:
Last Closed: 2014-10-14 07:55:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1140 0 None None None 2020-09-13 21:06:15 UTC
Red Hat Product Errata RHBA-2014:1385 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2014-10-14 01:27:42 UTC

Description Marc Sauton 2014-05-30 19:04:42 UTC
Description of problem:

Sometimes, when trying to resolve replication issues, we end up with a newer message flooding the errors log from the replication plug-in:
"
changelog iteration code returned a dummy entry with csn 5385ee18000000070000, skipping ...
"
and there is no way to get rid of this messages that keeps filling the errors log file.

this is a report to find a way to try suppress this message when not necessary, in
ldap/servers/plugins/replication/windows_inc_protocol.c
ldap/servers/plugins/replication/repl5_inc_protocol.c


examples:

RHDS 9.1 RHEL 6.5 with
389-ds-base-1.2.11.15-30.el6_5.x86_64
[29/May/2014:12:29:09 -0400] agmt="cn=ds1-xp" (ds1:636) - Can't locate CSN 5385e594000000070000 in the changelog (DB rc=-30988). The consumer may need to be reinitialized.
[29/May/2014:12:29:09 -0400] NSMMReplicationPlugin - agmt="cn=ds1-xp" (ds1:636): changelog iteration code returned a dummy entry with csn 5385ee18000000070000, skipping ...

RHEL 6.4 and IPA 3 with:
389-ds-base-1.2.11.15-20.el6_4.x86_64
ipa-server-3.0.0-26.el6_4.4.x86_64
[05/Feb/2014:09:22:36 -0800] agmt="cn=meTods1.example.com" (ds1:389) - Can't locate CSN 5244d0b8000100040000 in the changelog (DB rc=-30988). The consumer may need to be reinitialized.
[05/Feb/2014:09:22:36 -0800] NSMMReplicationPlugin - agmt="cn=meTods1.example.com" (ds1:389): changelog iteration code returned a dummy entry with csn 52d42b20000000320000, skipping ...

other example:

[18/Oct/2011:13:09:57 +0000] NSMMReplicationPlugin - agmt="cn=srvAtosrvB" (srvB:389): changelog iteration code returned a dummy entry with csn 4e9d7bc2000000080000, skipping ...


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

RHDS 9.1 RHEL 6.5 with
389-ds-base-1.2.11.15-30.el6_5.x86_64

RHEL 6.4 and IPA 3 with:
389-ds-base-1.2.11.15-20.el6_4.x86_64
ipa-server-3.0.0-26.el6_4.4.x86_64


How reproducible:
N/A, happened with several customers while trying to resolve replication issues.


Steps to Reproduce:
1. N/A
2.
3.

Actual results:

errors log filling with:

[29/May/2014:12:29:09 -0400] NSMMReplicationPlugin - agmt="cn=ds1-xp" (ds1:636): changelog iteration code returned a dummy entry with csn 5385ee18000000070000, skipping ...


Expected results:


Additional info:

Comment 1 Marc Sauton 2014-05-30 19:06:11 UTC
added upstream ticket
https://fedorahosted.org/389/ticket/47809
find a way to remove replication plugin errors messages "changelog iteration code returned a dummy entry with csn %s, skipping ..."

Comment 3 Sankar Ramalingam 2014-06-12 12:13:30 UTC
Is this error coming when the replication error log level is enabled?
Can this be reproduced in QE environment?

Comment 4 Noriko Hosoi 2014-06-12 17:05:16 UTC
(In reply to Sankar Ramalingam from comment #3)
> Is this error coming when the replication error log level is enabled?
> Can this be reproduced in QE environment?

I ran this test first:
https://bugzilla.redhat.com/show_bug.cgi?id=1080185#c1

then checked the error log to make sure there is ...
1) no "changelog iteration code returned ..." message is loged, and
2) no duplicate of "Can't locate CSN 539946eb000b00020000 in the changelog" message.

Comment 6 Amita Sharma 2014-08-14 12:33:31 UTC
[root@dhcp201-155 export]# tail -f /var/log/dirsrv/slapd-M1/errors
[14/Aug/2014:08:13:17 -0400] attrcrypt - No symmetric key found for cipher AES in backend repman, attempting to create one...
[14/Aug/2014:08:13:17 -0400] attrcrypt - Key for cipher AES successfully generated and stored
[14/Aug/2014:08:13:17 -0400] attrcrypt - No symmetric key found for cipher 3DES in backend repman, attempting to create one...
[14/Aug/2014:08:13:17 -0400] attrcrypt - Key for cipher 3DES successfully generated and stored
[14/Aug/2014:08:13:17 -0400] - slapd started.  Listening on All Interfaces port 30100 for LDAP requests
[14/Aug/2014:08:13:17 -0400] - Listening on All Interfaces port 30101 for LDAPS requests
[14/Aug/2014:08:15:26 -0400] NSMMReplicationPlugin - agmt="cn=M1_to_M2" (dhcp201-155:30103): Replica has a different generation ID than the local data.
[14/Aug/2014:08:15:27 -0400] NSMMReplicationPlugin - agmt="cn=M1_to_M4" (dhcp201-155:30107): Replica has a different generation ID than the local data.
[14/Aug/2014:08:16:57 -0400] NSMMReplicationPlugin - Beginning total update of replica "agmt="cn=M1_to_M2" (dhcp201-155:30103)".
[14/Aug/2014:08:17:02 -0400] NSMMReplicationPlugin - Finished total update of replica "agmt="cn=M1_to_M2" (dhcp201-155:30103)". Sent 160 entries.

^C
[root@dhcp201-155 export]# rpm -qa | grep 389
389-admin-debuginfo-1.1.34-1.el6.x86_64
389-ds-base-1.2.11.15-39.el6.x86_64
389-ds-base-debuginfo-1.2.11.15-36.el6.x86_64
389-adminutil-1.1.17-1.el6.x86_64
389-adminutil-debuginfo-1.1.17-1.el6.x86_64
389-ds-base-libs-1.2.11.15-39.el6.x86_64
389-console-1.1.7-1.el6.noarch

Hence Verified.

Comment 7 errata-xmlrpc 2014-10-14 07:55:12 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-1385.html


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