Open
Conversation
4577f63 to
8fe21dc
Compare
Contributor
Author
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds server-side support for KV full-scan sessions (FIP-17), including session lifecycle management, RPC handling, and operator-facing configuration.
Changes:
- Introduces
ScannerManager/ScannerContextto manage server-side scan sessions with TTL eviction and concurrency limits. - Implements
TabletService#scanKvto open/continue/close scans and stream batched results. - Wires scanner cleanup into replica leadership/stop paths and documents new configuration options.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/maintenance/configuration.md | Documents new KV scanner TTL/limits configs. |
| fluss-common/src/main/java/org/apache/fluss/config/ConfigOptions.java | Adds config keys for scanner TTL, eviction interval, and limits. |
| fluss-server/src/main/java/org/apache/fluss/server/kv/KvTablet.java | Adds openScan to create snapshot-backed scan contexts. |
| fluss-server/src/main/java/org/apache/fluss/server/kv/scan/ScannerContext.java | New scan session state holder (snapshot/iterator/lease). |
| fluss-server/src/main/java/org/apache/fluss/server/kv/scan/ScannerManager.java | New session manager with TTL eviction and limit enforcement. |
| fluss-server/src/main/java/org/apache/fluss/server/tablet/TabletService.java | Implements scanKv RPC using ScannerManager. |
| fluss-server/src/main/java/org/apache/fluss/server/tablet/TabletServer.java | Instantiates/closes ScannerManager and injects into services. |
| fluss-server/src/main/java/org/apache/fluss/server/replica/ReplicaManager.java | Closes scanners on leadership change / stopReplica; adds leader KV accessor. |
| fluss-server/src/main/java/org/apache/fluss/server/replica/Replica.java | Safety-net close of scanners in dropKv(). |
| fluss-server/src/test/java/org/apache/fluss/server/kv/KvTabletTest.java | Adds unit tests for openScan behavior. |
| fluss-server/src/test/java/org/apache/fluss/server/kv/scan/ScannerManagerTest.java | New tests for session creation, limits, TTL eviction, and shutdown. |
| fluss-server/src/test/java/org/apache/fluss/server/replica/ReplicaManagerTest.java | Ensures scanners are closed when stopping replicas. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR brings in the server-side implementation for FIP-17, introduced here
#2809