Fix multi host data source type reloading#6238
Fix multi host data source type reloading#6238NinoFloris wants to merge 1 commit intonpgsql:mainfrom
Conversation
|
We should probably consider whether we want a direct call to connection.ReloadTypes() (as opposed to multihostdatasource.ReloadTypes()) to only reload the concrete data source. |
|
What a nice bug.
While I highly doubt anyone will ever call Now, here's another tricky question. Let's say we have two hosts and the first host is down, so we only connect to second (and it's primary). Currently,
|
Yes this is a good point, I haven't done enough around error handling. If we believe option 2 is better I would want to align the single host behavior to this as well. |
Closes #6237
We were not actually bootstrapping the individual data sources, so no types for the concrete connections would get reloaded by doing multihostdatasource.ReloadTypes().