[英]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:所以,要解决:
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.