-
Notifications
You must be signed in to change notification settings - Fork 1.2k
When index method is called in recursion it kills python interpreter #1602
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
Comments
I'm not sure there's much we can do here, the function itself is infinitely recursive so of course you're going to hit the recursion limit eventually? What are we supposed to fix here? Going to close this for now, let me know if there's something we can do. |
Hi @sethmlarson, one thing is exception (hiting the limit) Use case where we in recursion to index 2000 documents -> won't work. Also issue is similar to this one that was solved: https://bugs.python.org/issue36272 I have fixed it in my code with:
The issue is that https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/connection/http_urllib3.py#L256 RecursionError it doesn't get propagated it's needed to be. In python recursion and even change it's limit like: Tested cases:
Please consider my PR: #1607
Code:
|
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
Versions:
Expected:
Behavior:
To reproduce:
The text was updated successfully, but these errors were encountered: