shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[BUG] P2C LoadBalancer responseTrigger calculates wrong EWMA decay weight due to reversed get/set order

Open hengyuss opened this issue 4 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

In P2cLoadBalancer.responseTrigger(), the responseStamp is set before being read, causing the EWMA decay weight calculation to always produce 0 time difference:

Image

Expected Behavior

No response

Steps To Reproduce

No response

Environment

ShenYu version(s):latest

Debug logs

No response

Anything else?

i will fix it

hengyuss avatar Jul 15 '26 09:07 hengyuss

👋 Hello @Aias00

A new issue has been opened by @hengyuss:

  • Title: [BUG] P2C LoadBalancer responseTrigger calculates wrong EWMA decay weight due to reversed get/set order
  • Link: https://github.com/apache/shenyu/issues/6427

Please review when you have time. Thank you! 🙏

github-actions[bot] avatar Jul 15 '26 09:07 github-actions[bot]