-
Notifications
You must be signed in to change notification settings - Fork 558
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
chore(broker): expose more backpressure algorithms and configurations #4610
Conversation
cb3d6b3
to
9e318cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good.
Mostly optional suggestions. Feel free to ignore or implement them, and mark them as resolved
Comments where I didn't put optional in front: I would like to review changes for those.
broker/src/main/java/io/zeebe/broker/system/configuration/AIMDCfg.java
Outdated
Show resolved
Hide resolved
broker/src/main/java/io/zeebe/broker/system/configuration/AIMDCfg.java
Outdated
Show resolved
Hide resolved
broker/src/main/java/io/zeebe/broker/system/configuration/AIMDCfg.java
Outdated
Show resolved
Hide resolved
broker/src/main/java/io/zeebe/broker/transport/backpressure/PartitionAwareRequestLimiter.java
Show resolved
Hide resolved
broker/src/main/java/io/zeebe/broker/system/configuration/BackpressureCfg.java
Outdated
Show resolved
Hide resolved
in case you didn't have many dealings with SonarCloud before: see Gateway line 46 for suppression of SonarCloud warnings. The code is in the upper right corner after you click on "Why is this an issue?" |
@pihme I have addressed your comments. It seems it is not possible to suppress duplicate code warnings in SonarCloud. If you know how to fix it let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two additional comments.
broker/src/main/java/io/zeebe/broker/system/configuration/backpressure/Gradient2Cfg.java
Outdated
Show resolved
Hide resolved
public class Gradient2Cfg { | ||
|
||
private int minLimit = 10; | ||
private int initialLimit = 20; | ||
private double rttTolerance = 2.0; | ||
private int longWindow = 600; | ||
|
||
@SuppressWarnings("common-java:DuplicatedBlocks") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that does not work. Suppress warnings is a general annotation. To tell it to ignore sonar qube warnings, you would need
@SuppressWarnings("squid:common-java:DuplicatedBlocks")
where squid stands for SonarQube Unique ID, I guess.
Not sure whether you need to have common-java in or not. When I used it, I didn't need it. I guess SonarQube knows it is looking at Java already.
Alternatively, I also found:
For instance, you can add the following property to your scanner configuration:
sonar.cpd.exclusions=path/to/your/package/*.java
on this page: https://stackoverflow.com/questions/52865737/how-do-i-ignore-duplicated-code-report-in-sonar
I guess this could be set somewehere in the pom files, but I haven't done it yet.
Nice work! Looking forward to trying different algorithms soon :-) |
eec822a
to
ba7be38
Compare
bors r+ |
Build succeeded |
* feat(backend): Endpoint to search decision instances feat(backend): Endpoint to search decision instances - added model and controller - added tests Closes #4610
…#4610) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Description
Related issues
closes #4595
Pull Request Checklist
mvn clean install -DskipTests
locally before committing