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

KeyError exception during cache clear. #12

Open
wrkyle opened this issue Oct 6, 2019 · 0 comments
Open

KeyError exception during cache clear. #12

wrkyle opened this issue Oct 6, 2019 · 0 comments

Comments

@wrkyle
Copy link

wrkyle commented Oct 6, 2019

I run this stemmer in one of my APIs 24/7. Very rarely I see a KeyError exception coming from _clear_cache() in basestemmer.py, line 339. Unless this is a symptom of an underlying problem, catching the KeyError in _clear_cache would solve the problem.

I'm wondering how this could happen. Possibly a data race in a multiprocessing environment? I'd have to examine the environment in which I'm using this code.

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