-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:zalando/patroni into feature/quor…
…um-commit
- Loading branch information
Showing
33 changed files
with
425 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,4 +173,4 @@ jobs: | |
|
||
- uses: jakebailey/pyright-action@v1 | ||
with: | ||
version: 1.1.316 | ||
version: 1.1.317 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Feature: recovery | ||
We want to check that crashed postgres is started back | ||
|
||
Scenario: check that timeline is not incremented when primary is started after crash | ||
Given I start postgres0 | ||
Then postgres0 is a leader after 10 seconds | ||
And there is a non empty initialize key in DCS after 15 seconds | ||
When I start postgres1 | ||
And I add the table foo to postgres0 | ||
Then table foo is present on postgres1 after 20 seconds | ||
When I kill postmaster on postgres0 | ||
Then postgres0 role is the primary after 10 seconds | ||
When I issue a GET request to http://127.0.0.1:8008/ | ||
Then I receive a response code 200 | ||
And I receive a response role master | ||
And I receive a response timeline 1 | ||
|
||
Scenario: check immediate failover when master_start_timeout=0 | ||
Given I issue a PATCH request to http://127.0.0.1:8008/config with {"master_start_timeout": 0} | ||
Then I receive a response code 200 | ||
And Response on GET http://127.0.0.1:8008/config contains master_start_timeout after 10 seconds | ||
When I kill postmaster on postgres0 | ||
Then postgres1 is a leader after 10 seconds | ||
And postgres1 role is the primary after 10 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.