Skip to content

interop,fix: Fix log out-of-range detection.#14973

Merged
1 commit merged intodevelopfrom
ts/fix-out-of-range-check
Mar 21, 2025
Merged

interop,fix: Fix log out-of-range detection.#14973
1 commit merged intodevelopfrom
ts/fix-out-of-range-check

Conversation

@ghost
Copy link

@ghost ghost commented Mar 20, 2025

In pull request #14758 we attempted to fix log out of range issues in complete blocks, but working on #14949 has uncovered that the system still isn't handling out-of-range indexes like we want in some situations.

After some digging, I feel like there are some situations where we have a block with no logs and findLogInfo is not returning an error conflict like we want.

Moving the check to the Contains method ensures we're returning an ErrConflict in all out-of-range situations.

@ghost ghost marked this pull request as ready for review March 20, 2025 20:37
@ghost ghost requested review from a team as code owners March 20, 2025 20:37
@ghost ghost requested a review from axelKingsley March 20, 2025 20:37
Copy link
Contributor

@Inphi Inphi left a comment

Choose a reason for hiding this comment

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

LGTM. With this, and the test setup fix, it passes all skipped intra-block test cases.

@ghost ghost added this pull request to the merge queue Mar 21, 2025
Merged via the queue into develop with commit ef21b9b Mar 21, 2025
51 checks passed
@ghost ghost deleted the ts/fix-out-of-range-check branch March 21, 2025 06:05
This pull request was closed.
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.

2 participants