Skip to content

Hdds 13999#20

Closed
ChenSammi wants to merge 307 commits intomasterfrom
HDDS-13999
Closed

Hdds 13999#20
ChenSammi wants to merge 307 commits intomasterfrom
HDDS-13999

Conversation

@ChenSammi
Copy link
Owner

What changes were proposed in this pull request?

Provide a one-liner summary of the changes in the PR Title field above.
It should be in the form of HDDS-1234. Short summary of the change.

Please describe your PR in detail:

  • What changes are proposed in the PR? and Why? It would be better if it is written from third person's
    perspective not just for the reviewer.
  • Provide as much context and rationale for the pull request as possible. It could be copy-paste from
    the Jira's description if the jira is well defined.
  • If it is complex code, describe the approach used to solve the issue. If possible attach design doc,
    issue investigation, github discussion, etc.

Examples of well-written pull requests:

What is the link to the Apache JIRA

Please create an issue in ASF JIRA before opening a pull request, and you need to set the title of the pull
request which starts with the corresponding JIRA issue number. (e.g. HDDS-XXXX. Fix a typo in YYY.)

(Please replace this section with the link to the Apache JIRA)

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests, workflow run on the fork git repo.)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this.)

sreejasahithi and others added 30 commits September 12, 2025 12:46
swamirishi and others added 27 commits November 17, 2025 21:37
…ache#9307)

Co-authored-by: Devesh Kumar Singh <devesh@apache.org>
@ChenSammi ChenSammi closed this Nov 26, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @ChenSammi, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces significant improvements across several core Ozone components, focusing on enhancing stability, observability, and configurability. It modernizes the distributed tracing system by migrating to OpenTelemetry, addresses potential memory issues with a new bounded byte buffer pool, and refines the container reconciliation process to better handle deleted blocks. Additionally, it provides more flexible RocksDB configuration options for datanodes and optimizes the handling of pipeline commands.

Highlights

  • OpenTelemetry Migration: The distributed tracing infrastructure has been migrated from the deprecated OpenTracing/Jaeger to OpenTelemetry. This involves updating dependencies and adapting tracing utilities to the new standard, ensuring future compatibility and improved observability.
  • Bounded ByteBuffer Pool: A new BoundedElasticByteBufferPool has been introduced to prevent unbounded memory growth in long-lived RPC clients, such as the S3 Gateway. This pool limits the total size of cached buffers, ensuring that excess buffers are garbage collected.
  • Container Checksum Tree Enhancements: The container checksum tree management logic has been refined to handle deleted blocks more robustly during reconciliation. This ensures proper convergence of replica states, even when blocks are deleted on some datanodes but not others.
  • Datanode RocksDB Configuration: Datanodes can now load RocksDB configuration from an external .ini file, allowing for more flexible and granular tuning of database options and column family settings.
  • Pipeline Command Processing Improvements: Close and Create Pipeline commands now utilize dedicated, bounded thread pools and include deduplication logic. This prevents redundant processing of commands and improves the efficiency and stability of pipeline management.
  • Snapshot Defragmentation Feature: New configuration keys and a command for snapshot defragmentation have been added, laying the groundwork for an upcoming feature aimed at optimizing snapshot storage efficiency.
Ignored Files
  • Ignored by pattern: .github/workflows/** (4)
    • .github/workflows/check.yml
    • .github/workflows/ci.yml
    • .github/workflows/close-stale-prs.yaml
    • .github/workflows/intermittent-test-check.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a wide range of significant changes and improvements across the codebase. Key changes include a migration from OpenTracing to OpenTelemetry for distributed tracing, a major refactoring of the container merkle tree to better handle deleted blocks, and enhancements to RDB batch operations to support delete ranges. Additionally, there are performance improvements in the ContainerSet, better resource management for pipeline command handlers, and numerous bug fixes and code cleanups. The overall quality of the changes is high, and they represent substantial progress for the project. I have one minor suggestion for removing some dead code.

Comment on lines +174 to +175
//number of buffers used before doing a flush/putBlock.
int flushPeriod = (int) (config.getStreamBufferFlushSize() / config.getStreamBufferSize());

Choose a reason for hiding this comment

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

medium

The local variable flushPeriod is calculated here but is never used. This appears to be dead code and should be removed to improve clarity and avoid confusion for future maintainers.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.