Skip to content

Conversation

rajagopalanand
Copy link
Contributor

@rajagopalanand rajagopalanand commented Feb 19, 2025

What this PR does:

Fixes a bug in LivenessCheck where it can result in a seg fault when ruler is initializing and the context can be nil.

When the ruler is initializing, it cannot evaluate rules since it has not loaded the rules yet. Therefore, in this case, we return an error as well which allows secondary ruler to evaluate the rule group one more time

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@rajagopalanand rajagopalanand marked this pull request as ready for review February 19, 2025 01:49
@dosubot dosubot bot added component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. type/bug labels Feb 19, 2025
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks

Copy link
Member

@alanprot alanprot left a comment

Choose a reason for hiding this comment

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

thanks

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 19, 2025
@yeya24 yeya24 merged commit 184d988 into cortexproject:master Feb 19, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. lgtm This PR has been approved by a maintainer size/XS type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants