Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Added TooManyAccountLocks to the PostgreSQL enum types#22348

Merged
lijunwangs merged 1 commit intosolana-labs:masterfrom
lijunwangs:fixed_transaction_plugin_error
Jan 7, 2022
Merged

Added TooManyAccountLocks to the PostgreSQL enum types#22348
lijunwangs merged 1 commit intosolana-labs:masterfrom
lijunwangs:fixed_transaction_plugin_error

Conversation

@lijunwangs
Copy link
Copy Markdown
Contributor

Problem

Failed to persist the update of transaction info to the PostgreSQL database due to Rust and PostgreSQL type mist matches

Summary of Changes

Added TooManyAccountLocks to the PostgreSQL enum types
Fixes #

@CriesofCarrots
Copy link
Copy Markdown
Contributor

CriesofCarrots commented Jan 7, 2022

Can we add a test or check that verifies in CI that all TransactionErrors are handled? Otherwise, I foresee this breaking every time someone adds a TransactionError type (like I'm about to do too: de7aed3 )

@lijunwangs
Copy link
Copy Markdown
Contributor Author

Can we add a test or check that verifies in CI that all TransactionErrors are handled? Otherwise, I foresee this breaking every time someone adds a TransactionError type (like I'm about to do too: de7aed3 )

Yes @CriesofCarrots -- I am developing the integration tests running in CI. Actually I caught this while testing the integration tests :) I found regressions a couple of times before as well. So the CI test is much needed.

Copy link
Copy Markdown
Contributor

@jstarry jstarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this @lijunwangs, looking forward to have that test

@lijunwangs lijunwangs merged commit b2687b7 into solana-labs:master Jan 7, 2022
@jstarry jstarry added the v1.9 label Jan 7, 2022
mergify Bot pushed a commit that referenced this pull request Jan 7, 2022
Checked w/o waiting for the CI result as currently CI is not validating Postgres changes. Manually verified it fixed the issue

(cherry picked from commit b2687b7)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants