-
Notifications
You must be signed in to change notification settings - Fork 117
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
[IND-481] Remove non-SQL implementation of creating initial rows #816
Conversation
More clean-up before migration to using a SQL based block processor.
IND-481 Update ender block handler with a single SQL handler that delegates to sub-handlers
Update |
WalkthroughThe recent updates involve the removal of a configuration option and associated functionality that allowed the use of SQL functions to create initial rows in a database. The test cases have been updated to reflect the removal of the Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (3)
- indexer/services/ender/tests/lib/on-message.test.ts (5 hunks)
- indexer/services/ender/src/config.ts (1 hunks)
- indexer/services/ender/src/lib/on-message.ts (5 hunks)
Files skipped from review due to trivial changes (1)
- indexer/services/ender/src/config.ts
Additional comments: 7
indexer/services/ender/__tests__/lib/on-message.test.ts (5)
166-172: The removal of the
useSqlFunction
parameter from the test case 'successfully processes block with transaction event' is consistent with the summary.219-225: The removal of the
useSqlFunction
parameter from the test case 'successfully processes block with transaction event with unset version' is consistent with the summary.544-550: The removal of the
useSqlFunction
parameter from the test case 'successfully processes block with block event' is consistent with the summary.589-592: The removal of the
useSqlFunction
parameter from the test case 'successfully processes block with transaction event and block event' is consistent with the summary.642-645: The removal of the
useSqlFunction
parameter from the test case 'successfully processes block with multiple transactions' is consistent with the summary.indexer/services/ender/src/lib/on-message.ts (2)
- 215-221: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [218-243]
The
createInitialRows
function now always uses a SQL function to create initial rows. Ensure that this change is intentional and that there is no longer a need for a non-SQL path, as the configuration and conditional logic for such a path are not present.
- 68-80: The transaction isolation level is set to
READ_UNCOMMITTED
, which is the weakest level and allows for dirty reads. Confirm that this isolation level is appropriate for the operations within theonMessage
function and that the potential for dirty reads is acceptable in this context.
Changelist
[IND-481] Remove non-SQL implementation of creating initial rows
More clean-up before migration to using a SQL based block processor.
Test Plan
Updated existing tests.
Author/Reviewer Checklist
state-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.