Skip to content

Conversation

@clohfink
Copy link

@clohfink clohfink commented Jan 7, 2025

Thanks for sending a pull request! Here are some tips if you're new here:

  • Ensure you have added or run the appropriate tests for your PR.
  • Be sure to keep the PR description updated to reflect all changes.
  • Write your PR title to summarize what this PR proposes.
  • If possible, provide a concise example to reproduce the issue for a faster review.
  • Read our contributor guidelines
  • If you're making a documentation change, see our guide to documentation contribution

Commit messages should follow the following format:

<One sentence description, usually Jira title or CHANGES.txt summary>

<Optional lengthier description (context on patch)>

patch by <Authors>; reviewed by <Reviewers> for CASSANDRA-#####

Co-authored-by: Name1 <email1>
Co-authored-by: Name2 <email2>

The Cassandra Jira

jaydeepkumar1984 and others added 30 commits November 5, 2024 17:45
logger.debug("Auto-repair is disabled for repair type {}", repairType);
return;
}
if (!Guardrails.mixedRepairsEnabled.isEnabled(null))

Choose a reason for hiding this comment

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

Could just use enabled() instead right?

Copy link
Author

Choose a reason for hiding this comment

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

enabled() is if the guardrail is turned on or off, not if its predicate is true

}
if (!Guardrails.mixedRepairsEnabled.isEnabled(null))
{
logger.debug("Cannot run repair when nodes in the cluster have different versions.");
Copy link
Owner

@jaydeepkumar1984 jaydeepkumar1984 Jan 8, 2025

Choose a reason for hiding this comment

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

Could we use a NoSpamLogger to log it as Info every 5 minutes? The reason is without any logging or metrics; it would become difficult for admins to diagnose why the repair has not been running. A new metric here would also provide visibility.

jaydeepkumar1984 pushed a commit that referenced this pull request Jan 28, 2026
…s altered/created (CASSANDRA-20570) (#21)

## Summary
patch by Nikhil Kumawat, Nikhil; reviewed by David Capwell, guo Maxwell
for CASSANDRA-20570

## Test Plan


## Jira Issues
T3-CAAS-799

Co-authored-by: Nikhil Kumawat <nikhilkumawat03@gmail.com>
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.

5 participants