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

Errbit exits without clearing outdated/resolved if COMPACT command is not permitted to use #1551

Closed
gavindsouza opened this issue Jan 16, 2024 · 0 comments · Fixed by #1552
Closed

Comments

@gavindsouza
Copy link
Contributor

Step 1: Are you in the right place?

I have a suggestion to run database compact only if allowed. Opened this issue since I think this has not been addressed before.

Step 2: Describe your environment

  • Errbit version: 0.10.0-dev
  • OS: heroku-20

Step 3: Describe the problem:

Running rake errbit:clear_outdated creates ProblemDestroy objects but fails on compact_database step while using MongoDB Atlas free tier with [8000:AtlasError]: CMD_NOT_ALLOWED: compact (on errbit-shard-YYYYY.XXXXX.mongodb.net:27017)

Expected Results:

Print a warning to STDOUT that not enough perms for COMPACT; Skipping. The job completes successfully and the Problems are destroyed.

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 a pull request may close this issue.

1 participant