[JAVA-3657] Trace logging throws exception logging the connection id when open fails Created: 10/Mar/20 Updated: 28/Oct/23 Resolved: 13/Mar/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Monitoring |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.1, 3.12.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When open fails, the driver trace logs a message containing the connectionId. But DefaultConnectionPool.PooledConnection#getDescription throws if the connection is open. This causes the trace logging statement itself to throw. We can fix this by allowing calls to DefaultConnectionPool.PooledConnection#getDescription even when the connection is not open. |
| Comments |
| Comment by Githook User [ 16/Mar/20 ] |
|
Author: {'username': 'rozza', 'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com'}Message: Ensure getting the description doesn't require the pool to be open.
|
| Comment by Githook User [ 13/Mar/20 ] |
|
Author: {'username': 'rozza', 'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com'}Message: Ensure getting the description doesn't require the pool to be open.
|
| Comment by Githook User [ 13/Mar/20 ] |
|
Author: {'username': 'rozza', 'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com'}Message: Ensure getting the description doesn't require the pool to be open.
|