-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
index variable is a string but is used as a dict ("string indices must be integers") #250
Comments
Probably it's due to how the index is saved during the reindexation. We'll give it a look, but can you provide some more context on how to reproduce it? Thanks |
Hello @lsabi , thanks for the reply. I think it boils down to this. This command returns a list of strings and not a list of objects. So
Therefore this other command which is inside of the loops probably needs to be modifed as such:
So during indexation rethinkDB creates "$reql_temp_index$" for the indexes it's reindexing. If you interrupt the reindexation these indexes will stay there. The existence of these indexes in this python script I referred triggers this cleanup code. So this cleanup code probably runs rarely, and it crashes. If you see line rethinkdb-python/rethinkdb/_index_rebuild.py Line 126 in ecf1dd6
|
I'll try to dig into it as soon as I have some spare time to dedicate. In the meantime I would keep it open. If you have more feedbacks, just right them here. |
rethinkdb-python/rethinkdb/_index_rebuild.py
Line 129 in ecf1dd6
This happened to me when I killed a reindexation process than started again: the code throws the error "string indices must be integers" and i found is in that line.
To workaround I commented that part of the script and ran. Later I plan to manually delete the temporary index.
The text was updated successfully, but these errors were encountered: