You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Bryan Pendleton <bp...@amberpoint.com> on 2009/04/07 15:31:28 UTC

change model for adding upgrade support?

As part of my work on DERBY-2487, I need to put in place the
basic infrastructure for upgrade from 10.5 to 10.6. At the
current time, I just need to add a couple system procedures,
but I assume that it would be good if we put all the basic
machinery in place at once?

Is there a nice svn revision that I can have a look at which
outlines the changes I need to make? Or a wiki page? Or maybe
could the person who made the changes for an earlier release
outline the basic steps?

thanks,

bryan


Re: change model for adding upgrade support?

Posted by Rick Hillegas <Ri...@Sun.COM>.
Bryan Pendleton wrote:
> Dag H. Wanvik wrote:
>> Rick Hillegas <Ri...@Sun.COM> writes:
>>
>> <necessary test changes>
>>
>> There is also
>
> Thanks Dag and Rick, that is all very helpful.
>
> I'm also noticing that line 480 of the *trunk* version of 
> DataDictionaryImpl
> appears to still be set to 10.5:
>
>     public void boot(boolean create, Properties startParams)
>             throws StandardException
>     {
>         softwareVersion = new DD_Version(this, 
> DataDictionary.DD_VERSION_DERBY_10_5);
>
> Shouldn't that be set to 10.6 at this point?
>
> Or do I do this as part of all the other upgrade testing work?
Hi Bryan,

I think it's a good idea to add a DD_VERSION_DERBY_10_6 now and roll 
your other work in at your leisure.

Thanks,
-Rick
>
> thanks,
>
> bryan
>


Re: change model for adding upgrade support?

Posted by Bryan Pendleton <bp...@amberpoint.com>.
Dag H. Wanvik wrote:
> Rick Hillegas <Ri...@Sun.COM> writes:
> 
> <necessary test changes>
> 
> There is also

Thanks Dag and Rick, that is all very helpful.

I'm also noticing that line 480 of the *trunk* version of DataDictionaryImpl
appears to still be set to 10.5:

	public void boot(boolean create, Properties startParams)
			throws StandardException
	{
		softwareVersion = new DD_Version(this, DataDictionary.DD_VERSION_DERBY_10_5);

Shouldn't that be set to 10.6 at this point?

Or do I do this as part of all the other upgrade testing work?

thanks,

bryan


Re: change model for adding upgrade support?

Posted by "Dag H. Wanvik" <Da...@Sun.COM>.
Rick Hillegas <Ri...@Sun.COM> writes:

<necessary test changes>

There is also

catalog/DD_Version.java

For example, I added code here for adding SYS.SYSROLES in DERBY-3191.

Thanks,
Dag

Re: change model for adding upgrade support?

Posted by Rick Hillegas <Ri...@Sun.COM>.
Hi Bryan,

There used to be a wiki page devoted to upgrade testing, but I see that 
the link is broken here: http://wiki.apache.org/db-derby/DerbyTesting

I think what you have to do is this:

1) Create 
org.apache.derbyTesting.functionTests.tests.upgradeTests.Changes10_6, 
modelling it on Changes10_5

2) Add tests to that class. Each test is a switch statement and each 
case in the switch statement is an upgrade phase. The phases are 
documented in UpgradeChange

3) Wire Changes10_6 into 
org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite and add 
10.5 to the OldVersions table

4) Put the 10.5 jar files into a directory parallel to the other 
directories of old releases so that they will be picked up by the 
upgrade machinery

Hope this helps,
-Rick

Bryan Pendleton wrote:
> As part of my work on DERBY-2487, I need to put in place the
> basic infrastructure for upgrade from 10.5 to 10.6. At the
> current time, I just need to add a couple system procedures,
> but I assume that it would be good if we put all the basic
> machinery in place at once?
>
> Is there a nice svn revision that I can have a look at which
> outlines the changes I need to make? Or a wiki page? Or maybe
> could the person who made the changes for an earlier release
> outline the basic steps?
>
> thanks,
>
> bryan
>