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

Don't fail on searchkit FileSearchException #992

Open
dosaboy opened this issue Nov 15, 2024 · 0 comments
Open

Don't fail on searchkit FileSearchException #992

dosaboy opened this issue Nov 15, 2024 · 0 comments

Comments

@dosaboy
Copy link
Member

dosaboy commented Nov 15, 2024

When searchkit looks for line feeds in a file, it will raise a FileSearchException after reading 1048576 chars and not finding one. We should catch this and move on instead of bailing to allow other searches toi continue:

Traceback (most recent call last):
File "/usr/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/lib/python3/dist-packages/searchkit/task.py", line 367, in execute
raise FileSearchException(msg) from e
searchkit.exception.FileSearchException: an unexpected exception occurred while searching /var/log/juju/machine-34-2024-11-05T08-50-42.450.log.gz - reached max line length (1048576) search without finding a line feed (epicenter=52375442)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant