Re: Bug in WO5.4.3? (was: Snapshots mysteriously vanishing?)
Re: Bug in WO5.4.3? (was: Snapshots mysteriously vanishing?)
- Subject: Re: Bug in WO5.4.3? (was: Snapshots mysteriously vanishing?)
- From: Mike Schrag <email@hidden>
- Date: Fri, 26 Mar 2010 09:40:24 -0400
>> But the _fastHashRemove() method seems to be wrong. It doesn't set _lastGID to null. This means, I could insert(valueA, keyA), then remove(keyB) and then get(keyA) would return null instead of valueA?
>
> That's something I can observe from time to time in my apps where I get errors like
>
> java.lang.IllegalStateException: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation {_dbSnapshot = {}; _entity = <snip> _databaseOperator = "EODatabaseUpdateOperator"; } does not contain value for attribute named catalogID with snapshot key: catalogID
>
> though all other values are present just that one 'catalogID' does not appear anymore. I never found why this happens but your explanation could fit that situation well.
I don't think you're seeing that particular cause ... There are lots of different ways what you're seeing could happen, but the scenario described above doesn't actually occur inside of EODatabase. It's a hypothetical that COULD happen of someone was not careful calling those internal APIs, but I don't see any calls that do it wrong.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden