Page MenuHomekolab.org

Prepare fix - Error while updating search collection
ClosedPublic

Authored by knauss on May 2 2016, 12:11 PM.

Details

Summary

Current theorie, if the error:
Cannot add or update a child row: a foreign key constraint fails
(akonadi.collectionpimitemrelation,

CONSTRAINT `collectionpimitemrelation_ibfk_2`
FOREIGN KEY (`PimItem_id`)
REFERENCES `pimitemtable` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)"

Collection::addPimItem is performed for items in PimItem, that do not exist anymore.
This patch added a debug message, what items are not vaild anymore in PimItem.

Test Plan

mollekopf tests this patch on this installation and give results back,
if we hit the correct part to fix it.

Diff Detail

Repository
rA akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

knauss updated this revision to Diff 311.May 2 2016, 12:11 PM
knauss retitled this revision from to Prepare fix - Error while updating search collection.
knauss updated this object.
knauss edited the test plan for this revision. (Show Details)
knauss added a reviewer: mollekopf.
mollekopf accepted this revision.May 2 2016, 12:22 PM
mollekopf edited edge metadata.
This revision is now accepted and ready to land.May 2 2016, 12:22 PM
Closed by commit rAf995b02854fb: Prepare fix - Error while updating search collection (authored by Sandro Knauß <sknauss@kde.org>). · Explain WhyMay 2 2016, 12:26 PM
This revision was automatically updated to reflect the committed changes.
knauss reopened this revision.May 12 2016, 10:35 AM

this does not fix the issue and i rework this patch

This revision is now accepted and ready to land.May 12 2016, 10:35 AM
knauss updated this revision to Diff 345.May 12 2016, 10:48 AM
knauss edited edge metadata.

now it checks if we have anything to add and do not crash,
if there is is nothing to add.

Ship it! (you already accepted it)

Closed by commit rA6d9d27ebe934: Prepare fix - Error while updating search collection (authored by Sandro Knauß <sknauss@kde.org>). · Explain WhyMay 12 2016, 9:47 PM
This revision was automatically updated to reflect the committed changes.