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

Raise if scanner cannot find requested position #2664

Closed
wants to merge 1 commit into from

Conversation

vinistock
Copy link
Member

Motivation

Trying to understand #2446

This PR starts raising if the document scanner cannot find the requested position. It prints both the document state and the requested position, so that we can understand if the document state got corrupted or if the requested position doesn't make sense.

Implementation

If we exceed the search loop, but the request line is still different than the one we found, then we couldn't find the correct position and we can raise.

This is not the solution for the problem, it's just a way to diagnose it.

Automated Tests

Added a test.

@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Oct 3, 2024
@vinistock vinistock self-assigned this Oct 3, 2024
@vinistock vinistock mentioned this pull request Oct 3, 2024
@vinistock
Copy link
Member Author

Not clear if this actually helps diagnose. Closing it for now.

@vinistock vinistock closed this Oct 25, 2024
@vinistock vinistock deleted the vs-debug-cpu-issue branch October 25, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant