#49129 Retrochangelog does not handle DB_DEADLOCK
Closed: wontfix 4 months ago by spichugi. Opened 3 years ago by tbordaz.

Issue Description

When retroCL is enabled we can see this kind of messages:

[09/Feb/2017:16:27:58 -0500] - dn2entry_ext: Failed to get id for
changenumber=141374,cn=changelog from entryrdn index (-30993)
[09/Feb/2017:16:27:58 -0500] - Operation error fetching
changenumber=141374,cn=changelog (null), error -30993.
[09/Feb/2017:16:27:58 -0500] DSRetroclPlugin - replog: an error occured
while adding change number 141374, dn =
changenumber=141374,cn=changelog: Operations error.
[09/Feb/2017:16:27:58 -0500] retrocl-plugin - retrocl_postob: operation
failure [1]

The two first messages are related to a db_deadlock when the retroCL plugin add the entry and tries to check if it already exists.
We may better handle this rc at least to log a more precise message.

The two last messages are a consequence of the previous DB_DEADLOCK failure.
Preferably it should retry.

Package Version and Platform

Those logs are coming from 1.3.5 but it can happen in any version

Steps to reproduce

No clear steps to reproduce.

Actual results

The main operation fails because of RetroCL failure, although it should retry.
The message are not showing that it is a transient error

Expected results

Have retroCL to handle DB_DEADLOCK/RETRY. Logs showing it is transient error

Metadata Update from @mreynolds:
- Custom field type adjusted to defect
- Issue set to the milestone:

3 years ago

Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Issue set to the milestone: 1.4.2 (was:

a year ago

Metadata Update from @vashirov:
- Issue priority set to: minor
- Issue set to the milestone: 1.4.4 (was: 1.4.2)

10 months ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2188

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

4 months ago

Login to comment on this ticket.