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

GOT UnpicklingError: invalid load key, 'x'.\n\nAt:\n #46

Open
buptcjj opened this issue Aug 14, 2023 · 0 comments
Open

GOT UnpicklingError: invalid load key, 'x'.\n\nAt:\n #46

buptcjj opened this issue Aug 14, 2023 · 0 comments

Comments

@buptcjj
Copy link

buptcjj commented Aug 14, 2023

Error Log
message":"UnpicklingError: invalid load key, 'x'.\n
At:\n /usr/local/python-3.7/lib/python3.7/site-packages/whoosh/filedb/structfile.py(245): read_pickle
/usr/local/python-3.7/lib/python3.7/site-packages/whoosh/codec/whoosh3.py(941): _goto
/usr/local/python-3.7/lib/python3.7/site-packages/whoosh/codec/whoosh3.py(961): _next_block
/usr/local/python-3.7/lib/python3.7/site-packages/whoosh/codec/whoosh3.py(1009): next
/usr/local/python-3.7/lib/python3.7/site-packages/whoosh/matching/mcore.py(215): all_ids

When I use whoosh in a concurrent scenario with multiple processes, the above-mentioned occasional errors occur.

cclauss pushed a commit to cclauss/whoosh-1 that referenced this issue Feb 9, 2024
This pull request includes several code quality improvements and bug
fixes. It removes unused code, improves exception handling, fixes import
issues, and enhances code readability. It also adds missing arguments
and references to unused variables for future improvements.
Additionally, it replaces generic exceptions with more specific ones and
uses binary search instead of linear search. The code has been
refactored to improve readability and converted to use f-strings for
string formatting.
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

No branches or pull requests

1 participant