Based on the information in the knowledge sources, it appears that issues where a Postgres-to-S3 sync gets stuck—especially after the initial full sync—are not uncommon. The logs you provided (showing "CDC events queue size: 0. remaining 10000") suggest that the Debezium CDC queue is empty, but the sync is not progressing or completing. Here are some relevant findings and troubleshooting steps: 1.
Destination Backpressure and Buffering: In some cases, the destination (such as S3 or Snowflake) can cause backpressure, slowing down or stalling the sync. This is especially true if there are many tables or large data volumes. For Snowflake, increasing the buffer parameter and limiting the number of tables per connection have been recommended. While your destination is S3, similar issues could occur if the destination cannot keep up with the data flow, causing the sync to hang even if the source queue is empty. Try reducing the number of tables per sync or splitting large syncs into smaller ones to see if that helps. Also, ensure your S3 destination is not experiencing throttling or permission issues that could stall uploads [Postgres CDC connector stuck](
https://discuss.airbyte.io/t/4373) [Postgres sync getting stuck](
https://discuss.airbyte.io/t/2703). 2.
Lack of Frequent Checkpointing: Airbyte's CDC implementation may only emit a state at the end of the sync, so if the sync fails or hangs, progress is lost and the next attempt starts from the last checkpoint. This can cause repeated stalls at the same point. There is ongoing work to improve checkpointing, but for now, you may need to monitor and manually intervene if syncs hang [Postgres CDC connector stuck](
https://discuss.airbyte.io/t/4373). 3.
Resource Usage: Even if your instance has available memory, the sync can get stuck if the container or pod running the sync hits its own resource limits. Check Docker or Kubernetes resource allocations for the Airbyte worker containers, and consider increasing memory or CPU limits if possible [Postgres sync getting stuck](
https://discuss.airbyte.io/t/2703). 4.
Connector Version: Ensure you are running the latest versions of both the Postgres source and S3 destination connectors, as several bugs and performance issues have been addressed in recent releases [Postgres CDC connector stuck](
https://discuss.airbyte.io/t/4373). 5.
Try Another Destination: To isolate whether the issue is with the source or destination, try syncing the same Postgres source to a different destination (such as Redshift or even a local file destination) to see if the problem persists [Postgres sync getting stuck](
https://discuss.airbyte.io/t/2703). 6.
Logs and Further Debugging: If the sync is stuck and logs are not progressing, you may need to collect more detailed logs or enable debug logging to get more insight into where the process is hanging. In summary, the most likely causes are destination backpressure, resource limits, or a lack of frequent checkpointing. Try updating your connectors, splitting large syncs, and monitoring resource usage. If the problem persists, testing with another destination can help isolate the issue. If you need more specific guidance, please provide additional logs or details about your Airbyte and connector versions, as well as your resource configuration.