fix: release pre-acquired stream ids#965
Conversation
|
Warning Review limit reached
Next review available in: 42 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
📝 WalkthroughWalkthroughThe change adds explicit cancellation for pre-acquired stream IDs when request preparation, throttling, channel selection, or write submission fails before Sequence Diagram(s)sequenceDiagram
participant RequestFlow
participant DriverChannel
participant InFlightHandler
RequestFlow->>DriverChannel: pre-acquire stream ID
RequestFlow->>DriverChannel: submit request
alt submission fails before in-flight handling
RequestFlow->>DriverChannel: cancelPreAcquireId()
DriverChannel->>InFlightHandler: cancel pre-acquired ID
else submission succeeds
DriverChannel->>InFlightHandler: write request
end
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
d8e357b to
3c4fed0
Compare
Release stream-id reservations when a channel has been pre-acquired but the request fails before it is submitted to InFlightHandler. Cover CQL, prepare, graph, continuous, admin reprepare, direct channel-handler requests, and closed pooled channels. Fixes scylladb#947. Signed-off-by: Dmitry Kropachev <dmitry.kropachev@gmail.com>
3c4fed0 to
29080a7
Compare
Summary
Fixes #947.
Depends on #966 for latest Scylla IT compatibility.
Tests
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 PATH=/usr/lib/jvm/java-17-openjdk-amd64/bin:$PATH mvn -pl core -Dtest=DriverChannelTest,CqlRequestHandlerTest,DefaultSessionPoolsTest,CqlPrepareHandlerTest,GraphRequestHandlerTest,ContinuousCqlRequestHandlerTest,ReprepareOnUpTest test