This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi! When trying to explore our 64-bit problem with lightspeed, we noticed that the nightly builds from at least the 10th of december breaks a lot of our unit tests, tests that have worked flawlessy since at least a year back with different versions of lightspeed. It seems that throughassociations get double entries, essentially all test checking the length of a throughassociation gets double the amount of entries than expected. We also get SQL errors, mysql complaining about duplicate entries when saving. Is this a known bug also? Best regards Björn Andersson Admeta AB |
|
|
Hi Björn, That sounds quite strange - we run thousands of unit tests that have to pass for a nightly build to be published so I would be very surprised if somehow through associations had started ceasing to work in a nightly. We also haven't been making changes in the 2.x trunk during that period to any great degree beyond anything we've stated to have fixed in a nightly build on the forums. Have you made any other changes to your code? Could you provide a repro to us to investigate further? I know Ivan stated that another issue you saw was a "known bug" however that shouldn't have you worry that every issue you have is a bug with LightSpeed. Most "bugs" that we're tracking are usually unsupported use cases which are rarely encountered and even then, if they are, throw some form of exception to indicate early in development that you cannot use something in a certain way. To have such a considerably change in behavior does not sound like something that is known. Having said all of this, until we could see a repro, we can't discount that it could be a LightSpeed issue. I hope that helps, John-Daniel Trask |
|
|
Hi again! We have not made changes that I'm aware of, and I don't see that it could be an issue even if we have done any as I can easily make the errors disappear by switching to an earlier version of LightSpeed. You said the same thing with the 64-bit issue we have also (you haven't made any changes etc.) but something has clearly happened. The 64-bit issue only happens in production, or when running through team city (or when testing through NUnit). When doing unit testing within VS using re-sharper the 64-bit issue doesn't appear. The issues we have now with the broken builds break no matter from which environment you run the unit tests. And they have worked fine for a long time using different previous versions of the O/R mapper, even ones that causes the 64-bit problem. I will try to create a repro, but this is enormously time-consuming, and I have to first find out why it fails within 64-bit environment, that was my initial goal for this week. I will get back to this other problem later on, but I really think you should look through your code with regards to this. Best regards Björn Andersson Admeta AB |
|
|
Hi again! One thing though: It may have been broken since long before the 10th of December, since we haven't been able to use nightlies since the 64-bit problem appeared. But we know at least that these particular tests didn't break anything on a 32-bit machine with the last 64-bit failing nightly we tried. /Björn |
|
|
Hello Bjorn, Could you at least provide us with some more detail, e.g.: * "Double entries" - what are you seeing? Two instances of each entity appearing in the through association? Spurious entities appearing in the collection? * "MySQL complaining about duplicate entries" - after doing what? Adding a single new entity and it's being saved twice? Adding a single new entity and it's being given the ID of something that's already in the database? Adding two new entities and they're being given the same ID? Where are you adding the entity/entities - to the UOW directly, to a child collection, to a through association? Also, which build you were using previously (where your tests were passing)? |
|
|
Hi Ivan. I have just prepared a testcase for our 64-bit bug, which is our biggest issue right now. I will check this after that. But just shortly: Entries in the list get duplicated, and when I do a save MySQL throws this error. This happens in through associations as I wrote above. As you probably know I usually very carefully prepare test cases for you to investigate when I have found bugs in LightSpeed previously. This time I was in the middle of something else, so I just threw out the question to see if you possibly were aware of some problem that's perhaps very randomly seen so you don't think it's a bigger issue. In another post I saw you had some problems with through associations and re-assigning UOW to entites which is exactly what we do. I will get back to you with a build number where our tests still passes (and for which they have done for a very long time, possibly about a year, some even more, before this occured). Best regards Björn Andersson Admeta AB |
|