Skip to content

feat: support unsubscribe partition#257

Merged
luoyuxia merged 1 commit into
apache:mainfrom
luoyuxia:unsubscribe-partition
Feb 6, 2026
Merged

feat: support unsubscribe partition#257
luoyuxia merged 1 commit into
apache:mainfrom
luoyuxia:unsubscribe-partition

Conversation

@luoyuxia
Copy link
Copy Markdown
Contributor

@luoyuxia luoyuxia commented Feb 5, 2026

Purpose

Linked issue: close #254

Brief change log

Tests

API and Format

Documentation

@luoyuxia
Copy link
Copy Markdown
Contributor Author

luoyuxia commented Feb 5, 2026

@AndreaBozzo Could you please help review it.

Copy link
Copy Markdown

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 adds support for unsubscribing from partition buckets in the log scanner, addressing issue #254. The implementation provides a way to dynamically remove partition buckets from active scanning, complementing the existing subscribe_partition functionality.

Changes:

  • Added unsubscribe_partition method to remove partition buckets from active log scanning
  • Implemented proper validation to ensure the operation is only allowed on partitioned tables
  • Extended C++ bindings to expose the new functionality to C++ clients

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
crates/fluss/src/client/table/scanner.rs Implements core unsubscribe_partition logic in LogScannerInner and exposes it through LogScanner and RecordBatchLogScanner public APIs
bindings/cpp/src/lib.rs Adds FFI bridge function to expose unsubscribe_partition to C++ through the CXX interface
bindings/cpp/src/table.cpp Implements C++ wrapper method that calls the Rust FFI function and handles availability checks
bindings/cpp/include/fluss.hpp Declares public C++ API method signature for UnsubscribePartition

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

Comment thread crates/fluss/src/client/table/scanner.rs
@luoyuxia luoyuxia force-pushed the unsubscribe-partition branch from eda45e8 to bf97f9a Compare February 5, 2026 23:41
@luoyuxia luoyuxia force-pushed the unsubscribe-partition branch from bf97f9a to a246f53 Compare February 5, 2026 23:43
@luoyuxia luoyuxia merged commit 9af12ea into apache:main Feb 6, 2026
13 checks passed
Comment thread bindings/cpp/src/lib.rs
err_result(1, "LogScanner not initialized".to_string())
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i cheked subscribe partition delegates to the consolidated do_subscribe helper. Maybe we can plan a similar helper going forward?

this LGTM tho and its not strictly needed

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.

support unsubscribe partition bucket

3 participants