shenyu
shenyu copied to clipboard
[BUG] P2C LoadBalancer responseTrigger calculates wrong EWMA decay weight due to reversed get/set order
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:
Expected Behavior
No response
Steps To Reproduce
No response
Environment
ShenYu version(s):latest
Debug logs
No response
Anything else?
i will fix it
👋 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! 🙏