aglinxinyuan opened a new pull request, #4750:
URL: https://github.com/apache/texera/pull/4750

   ### What changes were proposed in this PR?
   
   Add `FlowControlSpec` covering the credit-based backpressure manager in 
`FlowControl`:
   
   - Initial state: full credit, not overloaded
   - `getMessagesToSend(msg)` forwards when credit available; stashes and marks 
overloaded when not
   - Stashed messages drain once credit is restored
   - `updateQueuedCredit` shrinks available credit and is relative (not 
cumulative)
   - `decreaseInflightCredit` adjusts the inflight bucket and updates available 
credit accordingly
   
   ### Any related issues, documentation, discussions?
   
   Closes #4749
   
   ### How was this PR tested?
   
   `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.messaginglayer.FlowControlSpec"` — 
7/7 tests pass.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 4.7)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to