-
Notifications
You must be signed in to change notification settings - Fork 136
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
Circuitbreaker #7532
base: master
Are you sure you want to change the base?
Circuitbreaker #7532
Conversation
Can one of the admins verify this patch? |
14 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
modules/benchmarks/.factorypath
Outdated
@@ -0,0 +1,176 @@ | |||
<factorypath> |
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.
this change of course should be excluded :)
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.
changed in a51932a
int lastTrustScore = poolEntry.getTrustScore(); | ||
long lastSerailId = poolEntry.getSerialId(); | ||
|
||
if (msgSerialId == lastSerailId) { // Pool has rebooted |
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.
The comment (or logic) is wrong. If the last and new timestamps equal, then the pool is not rebooted
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.
changed in a51932a
if (msgSerialId == lastSerailId) { // Pool has rebooted | ||
nextTrustScore = lastTrustScore/tsDecrease; | ||
if (nextTrustScore < tsThreshold && !poolEntry.getEnabledStatus()) { // Pool was disabled, should now be re-ENABLED | ||
LOGGER.error("Pool {} WOULD now be re-ENABLED due to low trust score, BUT IS NOT", poolName); |
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.
the message is confusing....
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.
message changed in a5bd221
} | ||
|
||
public synchronized void messageArrived(CellMessage envelope, PoolManagerPoolUpMessage msg) { | ||
int tsIncrease = 15; |
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.
please add comments why this constants are selected
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.
comments added in d8fd9e6
} | ||
|
||
public synchronized void messageArrived(CellMessage envelope, PoolManagerPoolUpMessage msg) { | ||
// CostModuleTest#testPoolCircuitbreaker depends on these vaules beeing as they are. |
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.
Obviously, we don't want test related constants to be a part of the main codebase.
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.
Please update the change such, that no test constants are hardcoded in the main code
Motivation: The META-INF/gplazma-plugins.xml must point to the correct class name, otherwise we get: Unable register new plugin: Class org.dcache.gplazma.plugins.tokenx.TokenExchange could not be found. Modification: Fix the class name in gplazma-plugins.xml Result: no error on start (and working plugin :) ) Acked-by: Target: master Require-book: no Require-notes: no
…into circuitbreaker
Added Circuitbreaker w/ only logging