-
Notifications
You must be signed in to change notification settings - Fork 86
creating leaf sets node location incorrectly #25
Comments
Both of connect strings should have host= also in connect string. Giving connect string without it is usually a bug. So perhaps Londiste should throw error in such cases? |
Hi Markokr, sorry for my delayed response. |
This is an actual issue. Same experience here. Created the leaf with the --provider="dbname=mydb host=myhost" but no host added to the provider. |
I added error for that case. But then people complained who had testenv in single machine. So I downgraded it to warning: self.log.warning('No host= in public connect string, bad idea') Although it could probably be better worded. |
seeing this bug too. It's not a matter of whether to warn or not on missing host= in public connection string, but that the public connection string is not faithfully inserted into the database at the time the leaf node is created. given the following command line:
I expect:
to return:
but instead it returns just:
and replication fails until I manually fix that up in the database. edit: note that "node1" is the node name for the provider in the create-leaf call above. |
I find it interesting that it's suggested in this thread that skytools should warn on missing host= in the public connection string, while in fact the example configurations all work only on a single machine, leaving all of the interesting not-the-same-machine situations to be resolved by the reader. |
Following improvements are now done:
What else should be improved so common user would not get confused? What else is needed to close this bug? |
when replicating between 2 boxen, passing a provider connection string that has more than just the dbname, fails to register correctly.
For eg on node2:
creates a node_location entry on my_clone.pgq_node.node_location for node1 of "dbname=my_master".
Similarly (and I'm not sure at what point) node1 has a node2 entry for node_location of "dbname=my_clone".
In order to get things working, I just manually add a step and update the node_location column with correct db connection details.
I'm happy to drill in a bit and see if I can fix this (good chance to learn some python) and shoot you a pull request, however can you confirm my understanding of how this should work is correct?
The text was updated successfully, but these errors were encountered: