Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Addresses review comments from #24075 by consolidating duplicate ThrottleType enum definitions.

Proto consolidation

  • Moved ThrottleType enum from meta.proto to common.proto (already imported by both meta.proto and stream_plan.proto)
  • Removed nested ThrottleType from stream_plan.proto::ThrottleMutation
  • Both proto files now reference common.ThrottleType, eliminating duplication and drift risk

Rust code consistency

  • Added pub use risingwave_pb::common::ThrottleType to executor/mod.rs
  • Updated cdc_backill_v2.rs to use crate::executor::ThrottleType pattern consistent with other executors
  • Updated all references from risingwave_pb::meta::ThrottleTyperisingwave_pb::common::ThrottleType across frontend, meta, rpc_client, and ctl crates

Enum values unchanged; backward compatible.

Checklist

  • I have written necessary rustdoc comments.
  • I have added necessary unit tests and integration tests.
  • I have added test labels as necessary.
  • I have added fuzzing tests or opened an issue to track them.
  • My PR contains breaking changes.
  • My PR changes performance-critical code, so I will run (micro) benchmarks and present the results.
  • I have checked the Release Timeline and Currently Supported Versions to determine which release branches I need to cherry-pick this PR into.

Documentation

  • My PR needs documentation updates.
Release note

None - internal refactoring only.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 10, 2025 15:30
- Move ThrottleType enum from meta.proto to common.proto to eliminate duplication
- Remove nested ThrottleType enum from stream_plan.proto
- Update all references to use risingwave_pb::common::ThrottleType
- Add ThrottleType re-export in executor/mod.rs for consistency
- Update cdc_backill_v2.rs to use crate::executor::ThrottleType

Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
Update all ALTER statements to use risingwave_pb::common::PbThrottleType instead of risingwave_pb::meta::PbThrottleType

Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
Make all references use risingwave_pb::common::PbThrottleType for consistency

Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for sink backfill rate limit refactor: consolidate ThrottleType enum to common.proto Dec 10, 2025
Copilot AI requested a review from kwannoel December 10, 2025 15:46
@kwannoel kwannoel marked this pull request as ready for review December 12, 2025 06:49
@kwannoel kwannoel merged commit 3af1df9 into kwannoel/refactor-rate-limit Dec 12, 2025
5 of 8 checks passed
@kwannoel kwannoel deleted the copilot/sub-pr-24075 branch December 12, 2025 06:49
kwannoel added a commit that referenced this pull request Dec 15, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
kwannoel added a commit that referenced this pull request Dec 18, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
kwannoel added a commit that referenced this pull request Dec 18, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
kwannoel added a commit that referenced this pull request Dec 19, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants