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

Changes for 154 #155

Merged
merged 3 commits into from
Feb 26, 2024
Merged

Changes for 154 #155

merged 3 commits into from
Feb 26, 2024

Conversation

reshmabidikar
Copy link
Contributor

@reshmabidikar reshmabidikar commented Feb 21, 2024

Changes for #154

@reshmabidikar reshmabidikar marked this pull request as ready for review February 21, 2024 11:36
if (healthcheckActive.get()) {
return check(SLIDING_WINDOW_SIZE, ALPHA);
} else {
logger.warn("Queue HealthCheck Disabled, Returning HealthyResult");
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should have a warn for this - it will result in a lot of warn that do not need any actions. Either remove it completely or keep it in DEBUG

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -71,4 +71,9 @@ public interface KillbillServerConfig extends KillbillPlatformConfig {
@Default("0s")
@Description("Shutdown delay before starting shutdown sequence")
public TimeSpan getShutdownDelay();

@Config(KILL_BILL_NAMESPACE + "server.queue.healthcheck")
Copy link
Member

Choose a reason for hiding this comment

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

Could we make the property server.queue.healthcheck.enabled to be clear - unless we have other instances of those that follow this specific pattern?

Also, as a subsequent task, can you create doc PR to add this property?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could we make the property server.queue.healthcheck.enabled to be clear - unless we have other instances of those that follow this specific pattern?

Yes, I was following the pattern for the other properties in KillBillServerConfig like server.test.mode, server.test.clock.redis. I agree, having the enabled keyword in the property name makes it clearer. Let me know if you would like me to still go ahead with the change.

Also, as a subsequent task, can you create doc PR to add this property?

Noted, will do.

if (healthy || !healthcheckActive.get()) {
logger.info("System is healthy or healthcheck is disabled, Returning HealthyResult");
Copy link
Member

Choose a reason for hiding this comment

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

I would remove both traces or make them DEBUG: This is potentially called every 5 seconds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, I had added these statements to help me during testing, but I guess I forgot to delete them. Thanks for pointing this out!

@sbrossie sbrossie merged commit faf0f2a into killbill:master Feb 26, 2024
10 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.

2 participants