Skip to content

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

Closed

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

Activity

  1. added
    type: bug
    on Jul 15, 2026
  2. github-actions commented on Jul 15, 2026

    @github-actions
    Contributor

    👋 Hello @Aias00

    A new issue has been opened by @hengyuss:

    Please review when you have time. Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions