[CONJ-1111] Aurora Read Replica with Cluster endpoint Kill Query Fail. Created: 2023-10-10 Updated: 2023-10-10 |
|
| Status: | Open |
| Project: | MariaDB Connector/J |
| Component/s: | 2.7 compatibility, aurora |
| Affects Version/s: | 2.7.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | choi heesung | Assignee: | Diego Dupin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I'm using Aurora. When using two or more multi replica read db, a problem occurs when sending a kill query when query timeout occurs. To solve this problem, I request that the kill query be sent to the IP rather than the domain. I request changes as shown below. copiedProtocol.setHostAddress(new HostAddress(this.getSocket().getInetAddress().getCanonicalHostName(), this.getHostAddress().port, this.getHostAddress().type)); |
| Comments |
| Comment by Diego Dupin [ 2023-10-10 ] |
|
Not talking about unix named pipe and windows PIPE, why using socket.getInetAddress().getCanonicalHostName then in place of socket.getInetAddress().getHostAddress() ? |
| Comment by choi heesung [ 2023-10-10 ] |
|
my mistake. A better approach would be to use "socket.getInetAddress().getHostAddress()" as you mentioned. |