Skip to content

Comments

refactor: Split service hdfs-native to new crate#6953

Merged
Xuanwo merged 4 commits intoapache:mainfrom
chitralverma:split-hdfs-native
Dec 8, 2025
Merged

refactor: Split service hdfs-native to new crate#6953
Xuanwo merged 4 commits intoapache:mainfrom
chitralverma:split-hdfs-native

Conversation

@chitralverma
Copy link
Contributor

@chitralverma chitralverma commented Dec 8, 2025

Which issue does this PR close?

Closes #6900.

Rationale for this change

Part of #6829. This PR completes the task for the hdfs-native service.

What changes are included in this PR?

  • Add hdfs-native crate
  • add futures as a workspace dependency

Are there any user-facing changes?

base64 = "0.22"
bytes = "1.10"
ctor = "0.6"
futures = { version = "0.3", default-features = false }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added futures as a workspace dependency

@chitralverma chitralverma marked this pull request as ready for review December 8, 2025 13:13
@chitralverma chitralverma requested a review from Xuanwo as a code owner December 8, 2025 13:13
Copilot AI review requested due to automatic review settings December 8, 2025 13:13
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 8, 2025
@chitralverma
Copy link
Contributor Author

@Xuanwo ready for your review

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the hdfs-native service from the monolithic opendal-core crate into a separate opendal-service-hdfs-native crate, continuing the modularization effort tracked in issue #6829.

  • Extracts hdfs-native service implementation to core/services/hdfs-native/
  • Updates all imports to reference opendal_core instead of local crate::
  • Adds futures as a workspace dependency and updates all dependent crates to use it
  • Improves function naming consistency (register_hdfsnative_serviceregister_hdfs_native_service)

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
core/src/lib.rs Adds re-export for the new opendal-service-hdfs-native crate under the services-hdfs-native feature
core/services/hdfs-native/Cargo.toml Creates new crate manifest with dependencies for hdfs-native service
core/services/hdfs-native/src/*.rs Updates all imports from crate:: to opendal_core:: for core types and crate::error for local error module
core/services/hdfs-native/src/lib.rs Renames registration function to follow consistent naming convention
core/services/hdfs-native/src/docs.md Removes documentation sections specific to monolithic crate context
core/core/src/services/mod.rs Removes hdfs_native module declaration from core services
core/core/Cargo.toml Removes services-hdfs-native feature and updates futures to workspace dependency
core/Cargo.toml Adds futures workspace dependency and opendal-service-hdfs-native as optional dependency with corresponding feature flag
core/Cargo.lock Updates lock file with new hdfs-native service crate
core/layers/await-tree/Cargo.toml Updates futures dependency to use workspace reference
core/examples/*/Cargo.toml Updates futures dependencies across example crates to use workspace reference
core/edge/file_write_on_full_disk/Cargo.toml Updates futures dependency to use workspace reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you for working on this!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 8, 2025
@Xuanwo Xuanwo merged commit b7e5dac into apache:main Dec 8, 2025
340 checks passed
@chitralverma chitralverma deleted the split-hdfs-native branch December 8, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core split] Service: hdfs-native

2 participants