You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting weird results, first fast_sync completes, then immediately singer sync starts and it is also doing an logical_initial full table copy for every table which fast_sync already copied.
logger_name=tap_postgres log_level=INFO message=Beginning sync of stream(public-xxxxx) with sync method(logical_initial)
logger_name=tap_postgres log_level=INFO message=Performing initial full table sync
And after initial load finish and pipelinewise said
TAP RUN SUMMARY
-------------------------------------------------------
Status : SUCCESS
Runtime : 0:01:58.969750
I ran same command above, like multiple runs of this on schedule, and I get error below,
pipelinewise run_tap --tap postgres_db_logical --target redshift_dwh
time=2022-07-11 16:29:29 logger_name=pipelinewise log_level=INFO message=Profiling mode not enabled
time=2022-07-11 16:29:29 logger_name=pipelinewise.cli.pipelinewise log_level=INFO message=Running postgres_db_logical tap in redshift_dwh target
time=2022-07-11 16:29:29 logger_name=pipelinewise.cli.pipelinewise log_level=INFO message=No table available that needs to be sync by fastsync
time=2022-07-11 16:29:29 logger_name=pipelinewise.cli.pipelinewise log_level=INFO message=Table(s) selected to sync by singer: ['public-xxx', 'public-xx', 'public-xxx', 'public-xxx', 'public-xxx', 'public-xxx', 'public-xxxx']
time=2022-07-11 16:29:29 logger_name=pipelinewise.cli.commands log_level=INFO message=Writing output into /root/.pipelinewise/redshift_dwh/postgres_db_logical/log/redshift_dwh-postgres_db_logical-20220711_162929.singer.log
time=2022-07-11 16:29:29 logger_name=pipelinewise.cli.pipelinewise log_level=ERROR message=Command failed. Return code: 1
Error(s) found:
time=2022-07-11 16:29:29 logger_name=tap_postgres log_level=CRITICAL message='last_replication_method'
Full log: /root/.pipelinewise/redshift_dwh/postgres_db_logical/log/redshift_dwh-postgres_db_logical-20220711_162929.singer.log.failed
Traceback (most recent call last):
File "/home/ec2-user/pipelinewise/pipelinewise/cli/pipelinewise.py", line 1307, in run_tap
stream_buffer_size=stream_buffer_size,
File "/home/ec2-user/pipelinewise/pipelinewise/cli/pipelinewise.py", line 1082, in run_tap_singer
commands.run_command(command, self.tap_run_log_file, update_state_file)
File "/home/ec2-user/pipelinewise/pipelinewise/cli/commands.py", line 534, in run_command
f'Command failed. Return code: {proc_rc}\n'
pipelinewise.cli.commands.RunCommandException: Command failed. Return code: 1
Error(s) found:
time=2022-07-11 16:29:29 logger_name=tap_postgres log_level=CRITICAL message='last_replication_method'
Full log: /root/.pipelinewise/redshift_dwh/postgres_db_logical/log/redshift_dwh-postgres_db_logical-20220711_162929.singer.log.failed
I modified state.json file manually to understand problem, now it is able to work with consecutive runs, but I can not understand how this is passing tests or other people use this project.
Notice there is database name prefix on fast_sync state entires, so I deleted that and added "last_replication_method": "LOG_BASED", to each table, then a run_tap command can run as expected using singer without last_replication_method key error above.
postgres_to_redshift.py is the only file contains database name in the write state function call :/
Hi, I am trying to run tap-postgres with target-redshfit via following command, with latest version, make installed.
Getting weird results, first fast_sync completes, then immediately singer sync starts and it is also doing an
logical_initial
full table copy for every table which fast_sync already copied.And after initial load finish and pipelinewise said
I ran same command above, like multiple runs of this on schedule, and I get error below,
My state file looks like this after fast_sync
And after fast+singer sync (removed many tables, but basically, some has
last_replication_method
, some don't)So there are 2 problems here,
using latest version from master, installed friday.
The text was updated successfully, but these errors were encountered: