简体   繁体   English

将 Heroku 与 AWS RDS PostgreSQL 集成时,获取 stream 的“不一致 state”

[英]Get `Inconsistent state for stream ` when integrating Heroku with AWS RDS PostgreSQL

When trying to integrate between from Heroku PostgreSQL DB and AWS Postgresql USING stitch data (stitchdata.com) I get the following message without much explanation:当尝试使用拼接数据 (stitchdata.com) 从 Heroku PostgreSQL DB 和 AWS Postgresql 之间进行集成时,我收到以下消息,但没有太多解释:

Inconsistent state for stream DBNAME-public-addresses with replication method: null, and bookmark: {}

What is causing this error, and how to fix it?是什么导致了这个错误,以及如何解决它?

I also had this problem.我也有这个问题。 The cause is a misleading Stitch settings interface.原因是误导性的 Stitch 设置界面。

Every table you've selected to be synced from a Postgres DB by Stitch needs a "replication method" - options are "Full table" and "Key-based incremental".您选择通过 Stitch 从 Postgres DB 同步的每个表都需要一个“复制方法”——选项是“全表”和“基于键的增量”。 "Key-based incremental" means only syncing rows whose value is greater than the last row in the previous sync. “Key-based incremental”意味着只同步值大于上一次同步的最后一行的行。 Think created_at .想想created_at

When you select a table to by synced from a Postgres DB by Stitch, it will prompt you for a replication method.当您 select 通过 Stitch 从 Postgres DB 同步一个表时,它会提示您输入复制方法。 However, when you select all tables at once using the checkbox in the top left of the list of tables, you aren't prompted for anything at all.但是,当您使用表格列表左上角的复选框一次 select 所有表格时,您根本不会收到任何提示。 Stitch will allow you to save a configuration with no replication methods on any table, which will immediately fail with the cryptic Inconsistent state error in the question. Stitch 将允许您在任何表上保存没有复制方法的配置,这将立即失败,并在问题中出现神秘的Inconsistent state错误。

So, to solve:所以,要解决:

  1. open your integration settings打开您的集成设置
  2. navigate to "Tables to replicate"导航到“要复制的表”
  3. manually un-check and re-check each table to be synced手动取消选中并重新选中要同步的每个表
  4. select a replication method when prompted select 提示时复制方法

There is no way to set a replication setting for more than one table at once;无法同时为多个表设置复制设置; it has to be done for each table.它必须为每个表完成。 When you've done this for all of them, this error will stop being thrown.当您对所有这些都完成此操作后,将不再抛出此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Lambda 与 RDS Postgresql - 未知问题 - AWS Lambda with RDS Postgresql - Unknown Issue 如何更改 Postgresql 的 AWS RDS 中的“数据库名称”? - How can I change the "Database Name" in AWS RDS for Postgresql? PostgreSQL 连接尝试超时错误的 AWS RDS - AWS RDS for PostgreSQL Connection attempt timed out error 如何从 AWS CLI 连接到 AWS RDS PostgreSql 实例 - How to connect to AWS RDS PostgreSql Instance from AWS CLI CDC 和副本使用 AWS DMS 从 oracle PeopleSoft 到 RDS postgreSQL - CDC and replica using AWS DMS from oracle PeopleSoft to RDS postgreSQL 编程错误:function lower(bigint) 不存在(Django、AWS RDS、PostgreSQL) - ProgrammingError: function lower(bigint) does not exist (Django, AWS RDS, PostgreSQL) 与 BitBucket 集成时 AWS CodePipeline 的 AWS IAM 访问异常 - AWS IAM access exception with AWS CodePipeline when integrating with BitBucket 将 CSV 导入 postgreSQL 中的表,忽略重复项 - Amazon AWS/RDS - Import CSV to table in postgreSQL ignoring duplicates - Amazon AWS/RDS 没有等待创建 AWS RDS 代理的命令 - No command to wait for AWS RDS Proxy to get created 在 AWS RDS 上运行 checkForServerUpgrade 时“configPath”的值 - Value for 'configPath' when running checkForServerUpgrade on AWS RDS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM