[ISSUE #9865]✨Complete remoting V2 security, observability, and lifecycle contracts - #9870
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (57)
WalkthroughThe pull request completes remoting V2 security, response observation, transport metrics, session shutdown reporting, API deprecation, and migration documentation. It adds end-to-end authorization tests and expands lifecycle, telemetry, queue-wait, and public API contract coverage. ChangesSecurity and request ingress
V2 response observation
Session lifecycle
Transport metrics
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant V2ConnectionHandler
participant AuthorizedCommandDispatcherV2
participant V2RequestObservation
participant SessionHandle
participant SessionExecutor
participant SessionWriter
Client->>V2ConnectionHandler: send authenticated request
V2ConnectionHandler->>AuthorizedCommandDispatcherV2: dispatch RemotingRequest
AuthorizedCommandDispatcherV2->>V2RequestObservation: start and classify request
AuthorizedCommandDispatcherV2->>V2RequestObservation: complete response or deferred registration
V2RequestObservation-->>Client: response observation and response write
SessionHandle->>SessionHandle: request close
SessionHandle->>SessionExecutor: drain inline and resume tasks
SessionHandle->>SessionWriter: retire writer
SessionHandle-->>Client: publish close completion
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🔊@mxsm 🚀Thanks for your contribution🎉! 💡CodeRabbit(AI) will review your code first🔥! Note 🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥. |
Which Issue(s) This PR Fixes(Closes)
Brief Description
Complete the remoting V2 security, observability, and lifecycle contracts across transport, broker maintenance handling, runtime shutdown reporting, and the observability metric catalog.
How Did You Test This Change?
cargo fmt -p rocketmq-transport -p rocketmq-runtime -p rocketmq-broker -- --check- passed.cargo clippy --workspace --no-deps --all-targets --all-features -- -D warnings- passed.cargo clippy -p rocketmq-transport -p rocketmq-runtime -p rocketmq-broker --all-targets --all-features -- -D warnings- passed.cargo test -p rocketmq-transport- passed, including 671 library tests, integration tests, and 95 doc tests.cargo test -p rocketmq-transport --lib --features observability- passed, 671/671.main.python scripts/generate_metric_catalog.py --check- passed.cargo doc -p rocketmq-transport --no-deps- passed with one pre-existing private-link warning intls.rs..\scripts\runtime-audit.ps1 -SkipBaseline -EnforceBoundaryBaseline- passed..\scripts\check-error-hygiene.ps1- reports the same pre-existing findings asmain; this change adds no finding.git diff --check- passed.Summary by CodeRabbit
New Features
Bug Fixes
Documentation