-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement tx error handling when
ibcService.saveIbcChannelData
fails (
#537) * rename classes for clarification of their function * remove unneeded pass through function * add new database create script, entity, and insertOrUpdate, add TODO for issue 538 * fix lint imports * fix lint * format sql * update entitiy, start test * update tests * refactor name of block processing service * minor refactors * test refactor * fix lints * remove test file * refactor table name * fix lint * fix import lint
- Loading branch information
1 parent
8028c92
commit fdcfed9
Showing
9 changed files
with
212 additions
and
60 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
database/src/main/resources/db/migration/V1_91__Create_tx_processing_failures_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SELECT 'Create tx_processing_failure table' AS comment; | ||
|
||
CREATE TABLE IF NOT EXISTS tx_processing_failure ( | ||
id SERIAL PRIMARY KEY, | ||
block_height INT NOT NULL, | ||
tx_hash VARCHAR(128) NOT NULL, | ||
process_type VARCHAR(64) NOT NULL, | ||
failure_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
error_message TEXT DEFAULT NULL, | ||
retried BOOLEAN NOT NULL DEFAULT FALSE, | ||
success BOOLEAN NOT NULL DEFAULT FALSE, | ||
UNIQUE (block_height, tx_hash, process_type) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.