Aiven-Open / pghoard

PostgreSQL® backup and restore service
http://aiven-open.github.io/pghoard/
Apache License 2.0
1.3k stars 99 forks source link

walreceiver: stop replication when stopping thread #576

Closed kmichel-aiven closed 1 year ago

kmichel-aiven commented 1 year ago

This avoids failures when starting the replication twice (mainly in tests).

codecov[bot] commented 1 year ago

Codecov Report

Merging #576 (99b67f5) into main (7d35801) will increase coverage by 0.10%. The diff coverage is 100.00%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/aiven/pghoard/pull/576/graphs/tree.svg?width=650&height=150&src=pr&token=nLr7M7hvCx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiven)](https://codecov.io/gh/aiven/pghoard/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiven) ```diff @@ Coverage Diff @@ ## main #576 +/- ## ========================================== + Coverage 91.21% 91.31% +0.10% ========================================== Files 30 30 Lines 4586 4607 +21 ========================================== + Hits 4183 4207 +24 + Misses 403 400 -3 ``` | [Impacted Files](https://codecov.io/gh/aiven/pghoard/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiven) | Coverage Δ | | |---|---|---| | [pghoard/walreceiver.py](https://codecov.io/gh/aiven/pghoard/pull/576/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiven#diff-cGdob2FyZC93YWxyZWNlaXZlci5weQ==) | `98.13% <100.00%> (+0.27%)` | :arrow_up: | | [pghoard/common.py](https://codecov.io/gh/aiven/pghoard/pull/576/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiven#diff-cGdob2FyZC9jb21tb24ucHk=) | `94.57% <0.00%> (+1.16%)` | :arrow_up: |