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

fix bug: reloading rule files with empty group doesn't take effect #1885

Closed

Conversation

00arthur00
Copy link
Contributor

Signed-off-by: yapo.yang yang_yapo@126.com

reloading rule with empty group keep the orignal rules.
Steps to reproduce:

  1. initialize rules with below yaml:
groups:
  - name: test-alert-group
    partial_response_strategy: "warn"
    interval: 2m
    rules:
      - alert: TestAlert
        expr: 1
        labels:
          key: value
        annotations:
          key: value

  - name: test-rule-group
    partial_response_strategy: "warn"
    interval: 2m
    rules:
      - record: test_metric
        expr: 1
  1. change yaml to empty group:
groups: []
  1. run http reload
curl -X POST http://127.0.0.1:10902/-/reload
  1. view rules in browser, thanos keeps the initial one instead of emty rule.

Signed-off-by: yapo.yang <yang_yapo@126.com>
Signed-off-by: yapo.yang <yang_yapo@126.com>
@stale
Copy link

stale bot commented Jan 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 12, 2020
@00arthur00
Copy link
Contributor Author

Any update?

@stale stale bot removed the stale label Jan 17, 2020
@00arthur00
Copy link
Contributor Author

@bwplotka ping

@simonpasquier
Copy link
Contributor

FWIW this is fixing the same issue than #1439.

@00arthur00
Copy link
Contributor Author

00arthur00 commented Feb 3, 2020

FWIW this is fixing the same issue than #1439
#1439 doesn't fix the issue I metioned. I verified commit 9b17ba1 just now.

@simonpasquier

@simonpasquier
Copy link
Contributor

@00arthur00 The PR I linked (#1439) isn't merged yet so if you've tested with master, yes the bug is still there.

@00arthur00
Copy link
Contributor Author

@00arthur00 The PR I linked (#1439) isn't merged yet so if you've tested with master, yes the bug is still there.

@simonpasquier Thanks. Since the issue is being fixed. I will close the issue.

@00arthur00 00arthur00 closed this Feb 4, 2020
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