Issue Details (XML | Word | Printable)

Key: DERBY-3309
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Kristian Waagan
Reporter: Kristian Waagan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby
DERBY-3308

Minor cleanups in ClientPooledConnection40 and ClientPooledConnection

Created: 09/Jan/08 01:42 PM   Updated: 16/Mar/08 02:44 PM
Return to search
Component/s: JDBC, Network Client
Affects Version/s: 10.2.2.0, 10.3.2.1, 10.4.1.3
Fix Version/s: 10.2.2.1, 10.3.3.0, 10.4.1.3

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-3309-1a-unused_imports.diff 2008-01-10 12:11 PM Kristian Waagan 0.9 kB
File Licensed for inclusion in ASF works derby-3309-2a-remove_unused_constructor.diff 2008-01-10 01:54 PM Kristian Waagan 2 kB
File Licensed for inclusion in ASF works derby-3309-3a-cpc_documentation_changes.diff 2008-01-22 04:30 PM Kristian Waagan 7 kB
File Licensed for inclusion in ASF works derby-3309-4a-cpc_listeners_synch.diff 2008-02-05 12:22 PM Kristian Waagan 5 kB

Resolution Date: 22/Feb/08 01:00 PM


 Description  « Hide
A few minor cleanups:
 1) Remove unused constructor
 2) Remove unused imports
 3) Various documentation/formatting fixes

Other minor fixes will be done if required.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #610404 Wed Jan 09 14:52:59 UTC 2008 kristwaa DERBY-3309: Removed unused imports in ClientPooledConnection40.
Patch file: DERBY-3309-1a-unused_imports.diff
Files Changed
MODIFY /db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection40.java

Repository Revision Date User Message
ASF #610766 Thu Jan 10 12:10:09 UTC 2008 kristwaa DERBY-3309: Removed unused imports in ClientPooledConnection40. Merged from trunk (10.4) revision 610404.
Files Changed
MODIFY /db/derby/code/branches/10.3/java/client/org/apache/derby/client/ClientPooledConnection40.java

Repository Revision Date User Message
ASF #610767 Thu Jan 10 12:10:34 UTC 2008 kristwaa DERBY-3309: Removed unused imports in ClientPooledConnection40. Merged from trunk (10.4) revision 610404.
Files Changed
MODIFY /db/derby/code/branches/10.2/java/client/org/apache/derby/client/ClientPooledConnection40.java

Kristian Waagan added a comment - 10/Jan/08 12:11 PM
'derby-3309-1a-unused_imports.diff' removes unused imports from ClientPooledConnection40.

Committed to trunk with revision 610404.
Merged to 10.3 with revision 610766.
Merged to 10.2 with revision 610767.

Kristian Waagan made changes - 10/Jan/08 12:11 PM
Field Original Value New Value
Attachment derby-3309-1a-unused_imports.diff [ 12372900 ]
Kristian Waagan added a comment - 10/Jan/08 01:54 PM
'derby-3309-2a-remove_unused_constructor.diff' removes an unused contructor in ClientPooledConnection and ClientPooledConnection40. I traced it back to when the client driver was donated/added, so I have no idea why it was once introduced.

If anyone has information that indicates that it should not be removed, please let me know.

Kristian Waagan made changes - 10/Jan/08 01:54 PM
Kristian Waagan made changes - 10/Jan/08 01:54 PM
Derby Info [Patch Available]
Dyre Tjeldvoll added a comment - 14/Jan/08 02:55 PM
Fwiw, I was under the impression that users are supposed use a DataSource implementation to interact with a connection pool, so I cannot see any reason why the driver should provide these constructors if it does not use them internally. +1

Repository Revision Date User Message
ASF #611841 Mon Jan 14 16:05:35 UTC 2008 kristwaa DERBY-3309: Minor cleanups in ClientPooledConnection40 and ClientPooledConnection. Removed unused constructor.
Patch file: DERBY-3309-2a-remove_unused_constructor.diff
Files Changed
MODIFY /db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java
MODIFY /db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection40.java

Kristian Waagan added a comment - 14/Jan/08 04:24 PM
Thanks for the comment Dyre.

I committed 'derby-3309-2a-remove_unused_constructor.diff' to trunk with revision 611841.
I also decided that these fixes should not be ported to older brances, as the wiki page describing the process says that in general only bug-fixes should be back-ported (see http://wiki.apache.org/db-derby/MoveAChangeBetweenBranches).
I do not plan to back out the removal of unused imports from 10.2 and 10.3 though.

If someone has comments or another view on the porting issue, let me know.

Kristian Waagan made changes - 14/Jan/08 04:24 PM
Derby Info [Patch Available]
Fix Version/s 10.2.2.1 [ 12312251 ]
Fix Version/s 10.3.2.2 [ 12312885 ]
Kristian Waagan made changes - 22/Jan/08 04:21 PM
Status Open [ 1 ] In Progress [ 3 ]
Kristian Waagan added a comment - 22/Jan/08 04:30 PM
'derby-3309-3a-cpc_documentation_changes.diff' changes and adds some documentation for ClientPooledConnection.

Would be nice if someone read through it before I commit.

Kristian Waagan made changes - 22/Jan/08 04:30 PM
Repository Revision Date User Message
ASF #615846 Mon Jan 28 10:33:02 UTC 2008 kristwaa DERBY-3309: Minor cleanups in ClientPooledConnection40 and ClientPooledConnection. Documentation changes and additions in ClientPooledConnection.
Patch file: DERBY-3309-3a-cpc_documentation_changes.diff
Files Changed
MODIFY /db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java

Kristian Waagan added a comment - 28/Jan/08 10:34 AM
Committed 'derby-3309-3a-cpc_documentation_changes.diff' to trunk with revision 615846.

Kristian Waagan added a comment - 05/Feb/08 12:22 PM
'derby-3309-4a-cpc_listeners_synch.diff' replaces a Vector with an ArrayList and fixes the broken synchronization of the list of event listeners in ClientPooledConnection.
I have run derbyall and suites.All (Java 1.4.2 and Java SE 5.0) without errors.

I'm observing that in CPC a new event object is created for each listener, whereas in CPC40 the same object is reused for all listeners.

Patch ready for review.

Kristian Waagan made changes - 05/Feb/08 12:22 PM
Attachment derby-3309-4a-cpc_listeners_synch.diff [ 12374767 ]
Kristian Waagan made changes - 05/Feb/08 12:22 PM
Derby Info [Patch Available]
Repository Revision Date User Message
ASF #620485 Mon Feb 11 13:53:32 UTC 2008 kristwaa DERBY-3309: Minor cleanups in ClientPooledConnection40 and ClientPooledConnection.
This patch fixes the broken synchronization of the list of connection event listeners, and also replaces the Vector with an ArrayList.
Patch file: DERBY-3309-4a-cpc_listeners_synch.diff
Files Changed
MODIFY /db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java

Kristian Waagan added a comment - 11/Feb/08 01:58 PM
Committed 'derby-3309-4a-cpc_listeners_synch.diff' to trunk with revision 620485.

Since DERBY-3308 was backported, I plan to see if I can backport the patches for this issue as well.
I want to wait for a little while to see if any problems show up.

Kristian Waagan made changes - 11/Feb/08 01:58 PM
Derby Info [Patch Available]
Repository Revision Date User Message
ASF #630185 Fri Feb 22 12:56:57 UTC 2008 kristwaa DERBY-3309: Minor cleanups in ClientPooledConnection40 and ClientPooledConnection.
 - Removed unused constructor.
 - Documentation changes and additions in ClientPooledConnection.
 - This patch fixes the broken synchronization of the list of connection event listeners, and also replaces the Vector with an ArrayList.
Merged from trunk (10.4), revisions 611841, 615846 and 620485.
Files Changed
MODIFY /db/derby/code/branches/10.3/java/client/org/apache/derby/client/ClientPooledConnection.java
MODIFY /db/derby/code/branches/10.3/java/client/org/apache/derby/client/ClientPooledConnection40.java

Repository Revision Date User Message
ASF #630186 Fri Feb 22 12:57:22 UTC 2008 kristwaa DERBY-3309: Minor cleanups in ClientPooledConnection40 and ClientPooledConnection.
 - Removed unused constructor.
 - Documentation changes and additions in ClientPooledConnection.
 - This patch fixes the broken synchronization of the list of connection event listeners, and also replaces the Vector with an ArrayList.
Merged from trunk (10.4), revisions 611841, 615846 and 620485.
Files Changed
MODIFY /db/derby/code/branches/10.2/java/client/org/apache/derby/client/ClientPooledConnection.java
MODIFY /db/derby/code/branches/10.2/java/client/org/apache/derby/client/ClientPooledConnection40.java

Kristian Waagan added a comment - 22/Feb/08 01:00 PM
Merged patches 'derby-3309-2a-remove_unused_constructor.diff', 'derby-3309-3a-cpc_documentation_changes.diff' and 'derby-3309-4a-cpc_listeners_synch.diff' to branches 10.2 and 10.3.
I ran derbyall and/or suites.All for both branches.
Committed to 10.3 with revision 630185.
Committed to 10.2 with revision 630186.

Marking fixed, awaiting daily test run results to verify no tests are failing before closing.

Kristian Waagan made changes - 22/Feb/08 01:00 PM
Fix Version/s 10.2.2.1 [ 12312251 ]
Resolution Fixed [ 1 ]
Fix Version/s 10.3.2.2 [ 12312885 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Kristian Waagan added a comment - 16/Mar/08 02:44 PM
No problems reported.

Kristian Waagan made changes - 16/Mar/08 02:44 PM
Status Resolved [ 5 ] Closed [ 6 ]