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

[Bug]: Index cleaner only works once a day, even if it runs every hour. #6236

Open
vc43 opened this issue Nov 21, 2024 · 1 comment
Open

Comments

@vc43
Copy link

vc43 commented Nov 21, 2024

What happened?

I use helm chart with the images (cronjobs) jaeger-es-index-cleaner:1.57.0 and jaeger-es-rollover:1.57.0.
The rollover creates a new span every hour (for example). But the index cleaner only removes indexes older than 00:00 hours (once a day). And I would like indexes older than 24 hours to be deleted from the moment the index cleaner is launched. That is, 08:00, 09:00 and so on.
Here is the index cleaner log

{
  "level": "info",
  "ts": 1732172114.3503263,
  "caller": "es-index-cleaner/main.go:89",
  "msg": "Indices before this date will be deleted",
  "date": "2024-11-17T00:00:00Z"
}

Steps to reproduce

Create cronjob jaeger-es-rollover whith '{"max_age": "1h"}' and run it every hour.
Run jaeger-es-index-cleaner every hour.

Expected behavior

Indexes are deleted every hour, not once a day

Relevant log output

Screenshot

No response

Additional context

No response

Jaeger backend version

1.57.0

SDK

No response

Pipeline

No response

Stogage backend

No response

Operating system

No response

Deployment model

No response

Deployment configs

@shinigami-777
Copy link

shinigami-777 commented Nov 30, 2024

@vc43 did u try by passing 0 to numberOfDays ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants