Skip to content

Conversation

@Gargi-jais11
Copy link
Contributor

@Gargi-jais11 Gargi-jais11 commented Aug 7, 2025

What changes were proposed in this pull request?

ozone debug replicas chunk-info prints chunk information from all replicas for all chunks of all blocks within a file. It gathers all the information from the datanodes, stores it in memory, then prints it all at once. For large files in the GB range, this could result in a large amount of information stored in the client memory before printing. It would be better to print information about one block at a time in between each getBlock call to the datanode. The Json structure can remain the same.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-13445

How was this patch tested?

ran manually on docker-cluster

@adoroszlai
Copy link
Contributor

@Gargi-jais11 the PR description does not seem to match the actual change, and the branch references HDDS-13445, not HDDS-12998

@Gargi-jais11 Gargi-jais11 changed the title HDDS-12998. Bring real container size in pb message when exporting/importing containers HDDS-13445. Make ozone debug replicas chunk-info stream json output between datanode calls Aug 7, 2025
@Gargi-jais11
Copy link
Contributor Author

@Gargi-jais11 the PR description does not seem to match the actual change, and the branch references HDDS-13445, not HDDS-12998

So sorry. I have changed PR description.
Thank you for info.

@errose28 errose28 added the tools Tools that helps with debugging label Aug 7, 2025
@Gargi-jais11 Gargi-jais11 marked this pull request as ready for review August 11, 2025 11:57
@Gargi-jais11 Gargi-jais11 requested a review from errose28 August 11, 2025 11:57
Copy link
Contributor

@errose28 errose28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement. Mostly looks good. I tested it manually as well. Just two minor comments.

Copy link
Contributor

@sarvekshayr sarvekshayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and verified the streaming output. Other than Ethan’s comments, overall LGTM.

@Gargi-jais11 Gargi-jais11 requested a review from errose28 August 20, 2025 08:12
Copy link
Contributor

@errose28 errose28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tejaskriya Tejaskriya merged commit 9946ac6 into apache:master Aug 26, 2025
42 checks passed
@Tejaskriya
Copy link
Contributor

Thanks @Gargi-jais11 for the patch, and @errose28 @sarvekshayr for the reviews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools that helps with debugging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants