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

Clean up old TxParameters SQL table #1735

Merged
merged 1 commit into from
Jun 13, 2020
Merged

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Jun 10, 2020

Issue Number

Closes #1727

Overview

Remove an old SQL table, if it exists.

@rvl rvl self-assigned this Jun 10, 2020
-- | This table became @protocol_parameters@.
removeOldTxParametersTable :: Sqlite.Connection -> IO ()
removeOldTxParametersTable conn = do
dropTable <- Sqlite.prepare conn "DROP TABLE IF EXISTS tx_parameters;"
Copy link
Member

Choose a reason for hiding this comment

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

Could be nice to first look for the table using isFieldPresent and then, log accordingly depending on the outcome?

@KtorZ
Copy link
Member

KtorZ commented Jun 12, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 12, 2020
1735: Clean up old TxParameters SQL table r=KtorZ a=rvl

### Issue Number

Closes #1727

### Overview

Remove an old SQL table, if it exists.


Co-authored-by: Rodney Lorrimar <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 12, 2020

Build failed

@KtorZ KtorZ force-pushed the rvl/1727/cleanup-sqlite-table branch from 2fa5f70 to 20ef4ff Compare June 12, 2020 13:02
@KtorZ
Copy link
Member

KtorZ commented Jun 12, 2020

bors r+

@rvl
Copy link
Contributor Author

rvl commented Jun 12, 2020

From the buildkite log it looks like the integration tests may have a fd leak.

iohk-bors bot added a commit that referenced this pull request Jun 12, 2020
1735: Clean up old TxParameters SQL table r=KtorZ a=rvl

### Issue Number

Closes #1727

### Overview

Remove an old SQL table, if it exists.


Co-authored-by: Rodney Lorrimar <[email protected]>
@KtorZ KtorZ added the IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG label Jun 12, 2020
@KtorZ
Copy link
Member

KtorZ commented Jun 12, 2020

@rvl Yes, I've observed this a few times already and I am trying to pinpoint the issue without success. Sometimes, there's something causing an internal error on the server, after what, workers stop being removed and simply pile up as the test move forward. Listing wallets returns a bazillion number of wallets while also causing all subsequent test to fail. The cause is unclear.

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 12, 2020

Build failed

@rvl rvl force-pushed the rvl/1727/cleanup-sqlite-table branch from b33273e to b263454 Compare June 13, 2020 00:46
@rvl
Copy link
Contributor Author

rvl commented Jun 13, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 13, 2020

@iohk-bors iohk-bors bot merged commit 9226c3b into master Jun 13, 2020
@iohk-bors iohk-bors bot deleted the rvl/1727/cleanup-sqlite-table branch June 13, 2020 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove redundant tx_parameters table.
2 participants