Skip to content

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

Open
@vc43

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions