1

PostgreSQL RDS instance having physical replication to multi-AZ, same instance also enabled for Fivetran replication copying data to BigQuery using WAL logical test-decoding.

Multiple issues here:

  1. replication Lag, though not actually happening

  2. Querying

    a) select * from pg_stat_replication; shows only physical RDS replication details.

    b) select * from pg_replication_slots; gives information about replication slot created with value "Active" is "False" and "active_pid" is "NULL", which indicates replication is not active.

    However, verifying from Fivetran shows the sync is successful and the restart_lsn and flush_lsn values getting updated.

  3. encountered another issue with one of the databases, Fivetran connector disconnected and broken with this error:

    "status" : "FAILURE_WITH_TASK", "reason" : "java.lang.RuntimeException: fivetran_replication has last tracked LSN of PostgresLsn{6065/C8000028} which is ahead of PostgresLsn{6065/B009A038}", "taskType" : "reconnect"

    Tried reconnecting, but the same error pops up. Is there an way to skip the WAL logs?

mustaccio
28.6k24 gold badges60 silver badges77 bronze badges
asked May 5, 2022 at 18:13

1 Answer 1

1
  1. b) confirmed from fivetran support, this is an expected behavior and this value is true only when active replication is happening.

  2. waiting for the required WAL log which was already flushed at postgres side. postgresLSN (fivetran side) can be manually updated by fivetran support with the latest available restart_lsn value(data might be missing) or can resync the complete data to resolve the issue.

answered May 26, 2022 at 0:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.