Skip to content

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

Description

@hengyuss

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions