Bug #48442 | Load-balanced Connection object inconsistent results for hashCode() and equals() | ||
---|---|---|---|
Submitted: | 30 Oct 2009 18:17 | Modified: | 3 Nov 2009 15:43 |
Reporter: | Todd Farmer (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.10 | OS: | Any |
Assigned to: | Todd Farmer | CPU Architecture: | Any |
[30 Oct 2009 18:17]
Todd Farmer
[30 Oct 2009 18:47]
Todd Farmer
Pushed in r870, will be in next nightly snapshot build and 5.1.11.
[30 Oct 2009 18:51]
Todd Farmer
Patch with test case.
Attachment: bug48442.patch (text/x-patch), 3.03 KiB.
[3 Nov 2009 15:43]
Tony Bedford
An entry has been added to the 5.1.11 changelog: The implementation for load-balanced Connection used a proxy, which delegated method calls, including equals() and hashCode(), to underlying Connection objects. This meant that successive calls to hashCode() on the same object potentially returned different values, if the proxy state had changed such that it was utilizing a different underlying connection.