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

Circuitbreaker #7532

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

Lars5Janssen
Copy link

Added Circuitbreaker w/ only logging

@dcache-ci
Copy link

Can one of the admins verify this patch?

14 similar comments
@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@dcache-ci
Copy link

Can one of the admins verify this patch?

@@ -0,0 +1,176 @@
<factorypath>
Copy link
Member

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 :)

Copy link
Author

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
Copy link
Member

@kofemann kofemann Mar 15, 2024

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

Copy link
Author

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);
Copy link
Member

Choose a reason for hiding this comment

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

the message is confusing....

Copy link
Author

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;
Copy link
Member

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

Copy link
Author

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.
Copy link
Member

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.

Copy link
Member

@kofemann kofemann left a 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

Lars5Janssen and others added 4 commits August 20, 2024 15:52
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
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.

3 participants