Getting timeouts when setting 'parent' for CKRecord

I'm running into a strange case with setting the new 'parent' reference on a CKRecord. If the parent record is saved as part of the same CKModifyRecordsOperation, it works fine ... but if the parent record was saved in a different CKModifyRecordsOperation (and dependancies were set to make sure that the parent record is saved first before the other records are sent to CloudKit), then I get timeouts such as this:


2016-06-26 23:42:58.365038 TestCreatePrivateZoneOnCloudKit[1916:516778] [LogFacilityCK] Got a connection error for operation <private>: <private>

2016-06-26 23:42:58.365386 TestCreatePrivateZoneOnCloudKit[1916:516778] modify records error = Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.cloudd" UserInfo={NSDebugDescription=connection to service named com.apple.cloudd}


If I remove the 'record.parent' reference in this 2nd case, the timeouts go away.


Anyone having similar issues? The architecture of my app is such that I need to save the parent record in an operation first before I can upload other records.

I have the same issue too. Not always, it depends on the number of records in a batch. Please create a new bug report.

Bug report 27126366 created for this issue.

The issue persists in iOS 10 beta 2. I encourage everyone to lodge bug reports!

Same here, thought I was doing something wrong

Just did, #27245065

File one too: 27018949

My issue has been marked as a duplicate which is still open. Hopefully, Apple will fix this issue soon so we can try out sharing

It looks like the problem was fixed in beta 3. Anyone else can confirm that?

Just tested it, it has somewhat improved. In my tests, syncing a database with about 5k records to save in total takes 60 seconds without setting the parent record and 180 seconds with setting the parent record.


So no, does not seem to be fixed completely.

Getting timeouts when setting 'parent' for CKRecord
 
 
Q