-
Notifications
You must be signed in to change notification settings - Fork 7
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
Exception when calling get_data_dirs
in start_varlogsn.py
#88
Labels
bug
Something isn't working
Comments
get_data_dirs
in start_varlogsn.py
get_data_dirs
in start_varlogsn.py
ijsong
added a commit
that referenced
this issue
Aug 29, 2022
…e rather than null when no log stream replicas When there was no log stream replica in a storage node, the JSON field `logStreams` in the GetStrorageNode response was null. It can cause an exception while accessing the field after decoding the response, for example `TypeError: 'NoneType' object is not iterable`. This patch fixed the above case by setting empty slice to the `proto/snpb.(StorageNodeMetadataDescriptor).LogStreamReplicas`. Resolves #88
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
When the storage node has no log stream replica, the field logStreams of GetStorageNode RPC reply is null rather than an empty array. The
start_varlogsn.py
script raises an exception when decoding that.Expected Behavior
We expect that decoding works well and the logStreams is an empty array.
Steps To Reproduce
logStreams
is null.start_varlogsn.py
script raises the exception above.Environment
Anything else
The text was updated successfully, but these errors were encountered: