Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.7.10
-
None
-
aws aurora
Description
I am using AWS Aurora DB using a single write cluster endpoint. read only transaction is not executed in read db, but in write db.
Is the code below intended? It appears that the read db endpoint information obtained from write db cannot be used.
"listener.getUrlParser().getHostAddresses()" always returns only the write cluster endpoint defined in the jdbc url string.
It seems that the code(inside if statement) below cannot be executed for the same reason as above.
if (listener.getUrlParser().getHostAddresses().size() > 1) { |
// add newly discovered end-point to loop |
loopAddresses.addAll(listener.getUrlParser().getHostAddresses());
|
// since there is more than one end point, reactivate connection to a read-only host |
searchFilter = new SearchFilter(false); |
}
|