[elephant-devel] Problem when drop instances with derived slot

2009-03-11 Thread quan hu
Hello, I try to use the new feature: derived slot. Everything is fine, except an error is raised when try to drop the instance. It is raised by following code: (defmethod slot-makunbound-using-class ((class persistent-metaclass) (instance persistent-object) (slot-def derived-index-slot-

Re: [elephant-devel] Serializer compatibility

2009-02-23 Thread quan hu
Hi Lesile, I provided a patch to fix the problem occured in the 0.9.1->1.02a upgrade process. The issue occurs when doing migrate with SBCL. The deserialization exception is reported. The latest email chain includes more details. If the failure symtom is similar, you may want to u

[elephant-devel] Patch for the migration issue in 1.0 Alpha2

2009-02-12 Thread quan hu
Hello, When using the latest 1.0 codes, 0.9.1 -> 1.0 migration fails. The test environment is SBCL, BDB4.7. I can reproduce the issue in 1.0 Alpha2. The same migration test passed in 1.0 Alpha1. So, it is likely a new one in 1.0 Alpha2. The error message "Deserialization error in m

Re: [elephant-devel] Good practices around adding/deleting class slots.

2009-01-11 Thread quan hu
Hi Yarek, Regarding to data migration, it is migration between different stores. My understanding of the typical cases are: 1. Change the backend. e.g. change BDB to Postmodern . 2. Upgrade. e.g. your application uses elephant 0.9.1 and BDB 4.5; To upgrade elephant from 0.9.1

Re: [elephant-devel] DB migration issue

2009-01-01 Thread quan hu
fix. I'd be happy to review and commit them to > the repository, but unfortunately I won't have any more time to work > on elephant for a little while. > > Ian > > On Dec 31, 2008, at 8:37 AM, quan hu wrote: > > > Hi Ian, > > > > I downloaded the patch

Re: [elephant-devel] DB migration issue

2008-12-31 Thread quan hu
ior patches of the past few days pass all tests > on SBCL/Mac/BDB. > > Ian > > PS - I'd love to know the current status of the elephant-unstable tree > with the postmodern backend. > > > On Dec 30, 2008, at 9:34 AM, quan hu wrote: > > > Hello, > > >

Re: [elephant-devel] DB migration issue

2008-12-30 Thread quan hu
shed and poped in right place of execute-transaction. Then, in my-current-transaction, check *transaction-stack* to see if there is an active transaction belongs to the same store-controller. If it is found, use it. My simple test shows it works. If this is the right direction, I can do more tes

Re: [elephant-devel] DB migration issue

2008-12-29 Thread quan hu
s with BDB 4.6 or 4.7? I made some changes >> > to migration, but I can't recall if they were in the latest darcs or >> > not - I think the latest darcs doesn't play well with BDB 4.5 so >> > please make sure you can reproduce under the above configuration if &g

[elephant-devel] DB migration issue

2008-12-29 Thread quan hu
Hello, I run into a problem when doing the garbage collection via data migration. The environment is elephant 0.9.1 and BDB 4.5. I also tried the latest elephant in darc and get the same result. 1. Test case to reproduce the problem. (defpclass user-profile()