Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Early Throttling by Adding Timestamp Check to Throttling Logic and Refine Throttling Related Unit Tests #12696

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

dakshina99
Copy link
Contributor

Description

When the TM receives events, it currently places them into the current bucket without considering the original event generation timestamp. As a result, events generated before downtime are counted toward the active throttling period, leading to early throttling.

Fix

This PR adds a timestamp check to the throttling logic to ensure that each event is evaluated based on its generation time. By incorporating this timestamp, events generated before downtime are dropped, preventing them from causing premature throttling when a DC resumes operation.

@AnuGayan AnuGayan merged commit ee49cd8 into wso2:master Nov 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Early throttling behaviour observed upon traffic manager restart
2 participants