Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339193

Summary: RecordStorageException while crawling: error storing record id: null
Product: z_Archived Reporter: Peter Wissel <pfreytag>
Component: SmilaAssignee: Daniel Stucky <daniel.stucky>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
log file with stacktrace
none
possible solution patch igor.novakovic: iplog+

Description Peter Wissel CLA 2011-03-08 05:34:01 EST
Build Identifier: M20100909-0800

I crawl a folder several times. If a file was deleted between two crawl jobs an RecordStorageException occurs (see attachment).

Reproducible: Always

Steps to Reproduce:
1. Crawl a folder.
2. Delete a file in this folder.
3. Crawl the folder again.
Comment 1 Peter Wissel CLA 2011-03-08 05:35:39 EST
Created attachment 190641 [details]
log file with stacktrace
Comment 2 Peter Wissel CLA 2011-03-08 05:40:17 EST
Created attachment 190642 [details]
possible solution patch

After research I think the problem comes with revision 604.
A record is created in deleteDelta method via RecordFactory.DEFAULT_INSTANCE but no Id is set.
Comment 3 Igor Novakovic CLA 2011-03-11 04:23:13 EST
Daniel, could you please take a quick look at this?

Regards
Igor
Comment 4 Daniel Stucky CLA 2011-03-14 07:06:58 EDT
Hi Peter,

thanks for providing this patch. I just tested it and it fixes the problem.
I checked in your patch as revision #966
Comment 5 Andreas Weber CLA 2013-04-15 11:49:38 EDT
Closing this