-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-15974. RBF: Unable to display the datanode UI of the router #2915
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
Conversation
💔 -1 overall
This message was automatically generated. |
@@ -855,7 +855,7 @@ public long getNumberOfSnapshottableDirs() { | |||
|
|||
@Override | |||
public String getEnteringMaintenanceNodes() { | |||
return "N/A"; | |||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test?
I don't think we can reproduce the JSON parsing in the browser side but let's do something closer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review @goiri , I think returning "{}" is more friendly than "null". I submitted new code and added tests.
💔 -1 overall
This message was automatically generated. |
Nice catch, @zhuxiangyi. It seems this bug became open after HDFS-15358. |
@goiri Could you review it again? |
Merged. Thanks for your contribution, @zhuxiangyi. Thanks for your reviews, @goiri. |
|
Co-authored-by: zhuxiangyi <zhuxiangyi@360.cn> Reviewed-by: Inigo Goiri <inigoiri@apache.org> Signed-off-by: Takanobu Asanuma <tasanuma@apache.org> (cherry picked from commit dff95c5)
…che#2915) Co-authored-by: zhuxiangyi <zhuxiangyi@360.cn> Reviewed-by: Inigo Goiri <inigoiri@apache.org> Signed-off-by: Takanobu Asanuma <tasanuma@apache.org>
HDFS-15974