-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-13101. Remove duplicate information in datanode list output #8523
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
aryangupta1998
left a comment
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 the patch @sreejasahithi, overall changes look good to me!
|
Which fields were removed? I think we have to be a little bit careful here, as our CLI compatibility contract, is that the JSON output should be compatible, but the "human readable" text output could change. The reason being, that JSON is by definition not intended for human consumption so readability is not a concern. If some field has been removed that a used was getting from |
Most of the fields I proposed removing in the Jira are either:
Although removing these is technically incompatible by our definition, I would consider their inclusion to be bugs in the first place making this a bug fix. We have used similar reasoning to "break compatibility" by adding json lists to list output commands. cc @adoroszlai if you have any thoughts on this as well. There are two proposed changes that fall outside of this:
If there are more concerns about that part of the change we can look at them in a separate Jira/PR, but IMO |
|
It's ok to have some changes that may break compatibility, we can adjust our test accordingly, but we must not remove any information from the json output. |
|
Maybe we just do this subset of changes in the PR:
We can leave the following changes to a follow up task since they might need more discussion:
+1 maybe as part of this change we can delegate to a centralized |
sarvekshayr
left a comment
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 updating the PR @sreejasahithi.
Looks like all the required changes have been addressed.
LGTM.
aryangupta1998
left a comment
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.
Overall LGTM, just one minor comment!
...-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DatanodeInfoJson.java
Outdated
Show resolved
Hide resolved
|
|
Tejaskriya
left a comment
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 working on this @sreejasahithi , LGTM!
ssulav
left a comment
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.
LGTM
errose28
left a comment
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.
Just a few minor comments but looks good otherwise.
...-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DatanodeInfoJson.java
Outdated
Show resolved
Hide resolved
...zone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/ListInfoSubcommand.java
Outdated
Show resolved
Hide resolved
...-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DatanodeInfoJson.java
Outdated
Show resolved
Hide resolved
…es in DatanodeInfoJson
|
Some of the tests are failing in the CI (testBalancer.robot and datanode.robot) , I am fixing it. |
|
@errose28 , I have addressed your comments could you please review the changes done. |
errose28
left a comment
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 the updates. Just a few more comments.
...zone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/ListInfoSubcommand.java
Outdated
Show resolved
Hide resolved
...e/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/BasicDatanodeInfoJson.java
Outdated
Show resolved
Hide resolved
...e/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/BasicDatanodeInfoJson.java
Outdated
Show resolved
Hide resolved
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 the updates. Also from #8520 the exception handling in getAllNodes with sorting is not correct and it would be good to fix that here. Currently if one of the calls to SCM fails we will get an NPE with no error message. If one of the node's info cannot be obtained we should instead print the message to stderr and continue processing the rest of the nodes.
...ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/BasicDatanodeInfo.java
Outdated
Show resolved
Hide resolved
...zone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/ListInfoSubcommand.java
Outdated
Show resolved
Hide resolved
…dated Exception handling
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 the continued updates. LGTM, just started the CI run.
* master: (55 commits) HDDS-13525. Rename configuration property to ozone.om.compaction.service.enabled (apache#8928) HDDS-13519. Reconciliation should continue if a peer datanode is unreachable (apache#8908) HDDS-13566. Fix incorrect authorizer class in ACL documentation (apache#8931) HDDS-13084. Trigger on-demand container scan when a container moves from open to unhealthy. (apache#8904) HDDS-13432. Accelerating Namespace Usage Calculation in Recon using - Materialised Approach (apache#8797) HDDS-13557. Bump jline to 3.30.5 (apache#8920) HDDS-13556. Bump assertj-core to 3.27.4 (apache#8919) HDDS-13543. [Docs] Design doc for OM bootstrapping process with snapshots. (apache#8900) HDDS-13541. Bump sonar-maven-plugin to 5.1.0.4751 (apache#8911) HDDS-13101. Remove duplicate information in datanode list output (apache#8523) HDDS-13528. Handle null paths when the NSSummary is initializing (apache#8901) HDDS-12990. (addendum) Generate tree from metadata when it does not exist during getContainerChecksumInfo call (apache#8881) HDDS-13086. Block duplicate reconciliation requests for the same container and datanode within the datanode. (apache#8905) HDDS-12990. Generate tree from metadata when it doesn't exist during getContainerChecksumInfo call (apache#8881) HDDS-12824. Optimize container checksum read during datanode startup (apache#8604) HDDS-13522. Rename axisLabel for No. of delete request received (apache#8879) HDDS-12196. Document ozone repair cli (apache#8849) HDDS-13514. Intermittent failure in TestNSSummaryMemoryLeak (apache#8889) HDDS-13423. Log reason for triggering on-demand container scan (apache#8854) HDDS-13466. Disable flaky TestOmSnapshotFsoWithNativeLibWithLinkedBuckets ...
What changes were proposed in this pull request?
Updated
ozone admin datanode list --jsonto include only key fields that are relevant for a listing command and removed duplicate fields. The command now returns only minimal and essential information per datanode. Detailed information for each node can be obtained viaozone admin datanode infoHDDS-13097.This makes the list output cleaner and more readable, especially in large clusters.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13101
How was this patch tested?
Sample output for single node:
https://github.com/sreejasahithi/ozone/actions/runs/15328473637