Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and log kinesis duplicates #50

Merged
merged 4 commits into from
Dec 19, 2023
Merged

Conversation

yuenmichelle1
Copy link
Collaborator

Because the Cardinality Validity Error is a Postgres error, it blocks any transaction in a spec environment. (Received ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block)
In other words, PG Statement Invalid Error due to duplicates, blocks the retry in a test because tests are done in single transactions. https://stackoverflow.com/questions/21138207/activerecordstatementinvalid-pg-infailedsqltransaction
Therefore cannot write tests for this. Since this is a temporary, I think its ok to skip tests until a proper fix is up.

app/models/kinesis_stream.rb Show resolved Hide resolved
app/models/kinesis_stream.rb Show resolved Hide resolved
app/models/kinesis_stream.rb Show resolved Hide resolved
@yuenmichelle1 yuenmichelle1 merged commit 049e317 into main Dec 19, 2023
4 checks passed
@yuenmichelle1 yuenmichelle1 deleted the fix-and-log-kinesis-duplicates branch May 22, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant