This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Perform logical replication after initial sync #144
Open
judahrand
wants to merge
9
commits into
transferwise:master
Choose a base branch
from
thread:issue-107
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b2857b5
Perform logical replication after initial sync
judahrand d69d686
Actually run the initial `LOG_BASED` sync in test
judahrand 83363ee
Merge branch 'master' of https://github.com/transferwise/pipelinewise…
judahrand c3fcc08
Update test images to enable `wal2json`
judahrand 64e1f91
Use fixed version of `wal2json`
judahrand f7fbdb2
Ensure `lsn_comitted` is defined
judahrand eaf87ad
Merge branch 'master' into issue-107
judahrand 4a46a43
Merge branch 'master' into issue-107
Samira-El 26d7a13
Merge branch 'master' into issue-107
Samira-El File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM docker.io/bitnami/postgresql:12 | ||
|
||
USER root | ||
|
||
# Git SHA of v2.4 | ||
ENV WAL2JSON_COMMIT_ID=36fbee6cbb7e4bc1bf9ee4f55842ab51393e3ac0 | ||
|
||
# Compile the plugins from sources and install | ||
RUN install_packages ca-certificates curl gcc git gnupg make pkgconf && \ | ||
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null && \ | ||
echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \ | ||
install_packages postgresql-server-dev-12 && \ | ||
git clone https://github.com/eulerto/wal2json -b master --single-branch && \ | ||
(cd /wal2json && git checkout $WAL2JSON_COMMIT_ID && make && make install) && \ | ||
rm -rf wal2json | ||
|
||
USER 1001 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use TestCase
assert*
methods instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Samira-El I'm facing this issue and planning on contributing the fix. Is your feedback related to line 268 only? That is change it to
assertIsInstance(CAUGHT_MESSAGES[9], singer.messages.StateMessage)
. Asking this since I see all other assert statements don't use TestCase either.