Skip to content

[BUG] Writer metrics are filling up the disk #61

@sruti1312

Description

@sruti1312

What is the bug?
Writer metrics are filling up the disk. Currently, the cleanup method deletes the writer files (https://github.com/opensearch-project/performance-analyzer/blob/main/src/main/java/org/opensearch/performanceanalyzer/writer/EventLogQueueProcessor.java#L190)
This method deletes files up to the current time, but the file creation happens after this. Thus one file is left out during the file deletion. This cause accumulation of writer files.

What is the expected behavior?
Old writer files in the /dev/shm/performanceanalyzer should be deleted. Files older than 120 seconds should not be present.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions