Skip to content

Conversation

@wilkmar
Copy link

@wilkmar wilkmar commented Mar 14, 2025

When searchkit looks for line feeds in a file, it will raise the MaxSearchableLineLengthReached after reading 1048576 chars and not finding one.
Now we catch the exception, log a message and skip searching the rest of the file. This approach allows for successful completion of the parallel searches.

Little refactoring in 'apply_to_file' was needed to avoid pylint 'too-many-return-statements / R0911' complaint.

Closes-issue: #21

I keep hitting this error then running hotsos. Once this is accepted we can update searchkit dependency in the hotsos.

When searchkit looks for line feeds in a file, it will raise the
MaxSearchableLineLengthReached after reading 1048576 chars and not
finding one.
Now we catch the exception, log a message and skip searching the
rest of the file. This approach allows for successful completion
of the parallel searches.

Little refactoring in 'apply_to_file' was needed to avoid pylint
'too-many-return-statements / R0911' complaint.

Closes-issue: dosaboy#21
Signed-off-by: Marcin Wilk <marcin.wilk@canonical.com>
@dosaboy dosaboy merged commit 3eace60 into dosaboy:main Apr 4, 2025
3 checks passed
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