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

Add the entity class for xDS flow control functionality #1679

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hanbingleixue
Copy link
Collaborator

@hanbingleixue hanbingleixue commented Nov 22, 2024

What type of PR is this?

Feature

What this PR does / why we need it?

Add the entity class for Xds flow control functionality

Which issue(s) this PR fixes?

Fixes #1515

Does this PR introduce a user-facing change?

No

Checklist

  • Make sure there is a GitHub_issue related with this PR before you start working on it.
  • Make sure you have squashed your change to one single commit.
  • GitHub Actions works fine in this PR.

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ Complexity Δ
unittests 44.07% <100.00%> (+0.11%) 181.00 <0.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ Complexity Δ
...ant/core/service/xds/entity/FractionalPercent.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...a/io/sermant/core/service/xds/entity/XdsAbort.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...nt/core/service/xds/entity/XdsCircuitBreakers.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...a/io/sermant/core/service/xds/entity/XdsDelay.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
.../io/sermant/core/service/xds/entity/XdsHeader.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...rmant/core/service/xds/entity/XdsHeaderOption.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
.../sermant/core/service/xds/entity/XdsHttpFault.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...t/core/service/xds/entity/XdsOutlierDetection.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
.../sermant/core/service/xds/entity/XdsRateLimit.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...ermant/core/service/xds/entity/XdsRetryPolicy.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
... and 1 more

... and 39 files with indirect coverage changes

@lilai23 lilai23 changed the title Add the entity class for Xds flow control functionality Add the entity class for xDS flow control functionality Nov 25, 2024
/**
* Should the value be appended
*/
private boolean append;
Copy link
Collaborator

@daizhenyu daizhenyu Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enabledAppend

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

Comment on lines 26 to 29
/**
* the specified delay will be injected before a new request
*/
private long fixedDelay;
Copy link
Collaborator

@lilai23 lilai23 Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specify unit of fixedDelay, s or ms

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

Comment on lines 24 to 26
*/
public class XdsFractionalPercent {
/**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any relation with xDS for this entity? If not, modify the name

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

* The number of consecutive 5xx responses or local origin errors that are mapped to 5xx error codes before a
* consecutive 5xx ejection occurs
*/
private int consecutive5Xx;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5Xx seems not right

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

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.

Supports xDS protocol to communicate with the Control Plane of Service Mesh
3 participants