by
Robert Barr >> Fri, 11 Feb 2000 3:48:49 GMT
The problem I have with reorgs failing is that they provide little to no information about what went wrong or how to fix it.
The reorg log contains the diags, but is often on another disk on a remote machine - it should really be 'in your face'. I have heard, on good authority, that reorg error reporting is going to be improved soon, ironically because (to some extent at least) there can be too much information in the reorg log.
A lot of the time I don't care about the data being reorged. I wonder if it would be possible to have a "delete instances of class x instead" option? This would provide a fast workaround for some reorg failures.
Carl, I suspect (hope) you are modelling in development when you "don't care about the data". The familiar desire to delete all instances (usually reference set data) is sometimes harder than it sounds, and you end up hacking around with jadescript for longer than you would really like to to remove instances and restore references. Using ...instances.purge can cause problems as this collection isn't 'updated' until transaction commit. A tip I heard is (during development only, of course) that you can use jdutil to delete the entire map file - a quick and effective way to purge all instances (assuming those you want to purge are defined in a particular map file).
While on the subject of reorgs, it's probably worth highlighting that a schema update containing consolidated reorgs should never be applied to
a production system before:
1) their application has been successfully tested on a copy of the production sytem, and
2) you have a backup of the production system - if the reorg fails after your schema changes have been applied, then you have no production system, and nowhere else to go but the backup.
(This isn't just JADE - this is any database, where, if multiple accumulated reorgs complete okay on development data, this is no guarantee that they will complete okay when consolidated into a single schema update on a different (production) data set).