Page MenuHomePhorge

Prepare fix - Error while updating search collection
ClosedPublic

Authored by knauss on May 2 2016, 12:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 6:05 AM
Unknown Object (File)
Thu, Oct 31, 8:10 PM
Unknown Object (File)
Wed, Oct 23, 11:13 AM
Unknown Object (File)
Wed, Oct 23, 11:02 AM
Unknown Object (File)
Wed, Oct 23, 11:01 AM
Unknown Object (File)
Wed, Oct 23, 10:29 AM
Unknown Object (File)
Wed, Oct 23, 10:27 AM
Unknown Object (File)
Wed, Oct 23, 10:18 AM
Subscribers
None

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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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 edited edge metadata.
This revision is now accepted and ready to land.May 2 2016, 12:22 PM
This revision was automatically updated to reflect the committed changes.

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 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)

This revision was automatically updated to reflect the committed changes.