-
Notifications
You must be signed in to change notification settings - Fork 83
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
Error on clusters.py when shards: null #989
Comments
jfrancoa
added a commit
that referenced
this issue
Apr 2, 2024
Currently, when no shards are present on a node, Weaviate returns shards: null, however the python-client code expects the shards option to include a list of shards or not appear at all if there is no shard information for that node. fixes: gh-989
jfrancoa
added a commit
that referenced
this issue
Apr 2, 2024
Currently, when no shards are present on a node, Weaviate returns shards: null, however the python-client code expects the shards option to include a list of shards or not appear at all if there is no shard information for that node. fixes: gh-989
jfrancoa
added a commit
that referenced
this issue
Apr 2, 2024
Currently, when no shards are present on a node, Weaviate returns shards: null, however the python-client code expects the shards option to include a list of shards or not appear at all if there is no shard information for that node. fixes: gh-989
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to execute a test case, a bug in the weaviate/collections/classes/cluster.py file was found. Weaviate, when no shards exist for a specific node returns shards: null when that node does not have any active shard, however the code expects a list, not a null value:
When trying to obtain the verbose cluster's information, the python-client fails with:
A possible solution consists on adding a condition to the if, that if node["shards"] is None to also return []:
I will submit a fix for the issue.
The text was updated successfully, but these errors were encountered: