Prevent splitbrain from duplicate names in configuration (#2724)

When starting check if node with the same is registered in DCS and try to query it's REST API.
If REST API is accessible exit with the error.

Close #1804
This commit is contained in:
Mark Pekala
2023-07-11 07:43:57 +02:00
committed by GitHub
parent 4725f12f9a
commit 412c51ddf1
5 changed files with 91 additions and 4 deletions
+4
View File
@@ -83,3 +83,7 @@ Feature: basic replication
Then postgres0 role is the secondary after 20 seconds
When I add the table buz to postgres1
Then table buz is present on postgres0 after 20 seconds
Scenario: check graceful rejection when two nodes have the same name
Given I start duplicate postgres0 on port 8011
Then there is a "Can't start; there is already a node named 'postgres0' running" CRITICAL in the dup-postgres0 patroni log