Skip to content

## Pull request overview #985

Description

Pull request overview

Backport to stable/8.8 that aims to reduce archiver integration-test flakiness when tests share an OpenSearch cluster by scoping test data per run, reducing cluster-wide operations, and making retention/ISM handling less contention-prone.

Changes:

  • Introduces a per-test testPrefix in the archiver IT base class, uses it for index prefixing and more targeted refreshes, and increases wait timeouts via a shared ARCHIVE_TIMEOUT.
  • Reduces OpenSearch pressure by refreshing only prefixed indices and setting numberOfReplicas=0 for test-created indices.
  • Reworks OpenSearch archiver repository IT cleanup to delete only test-owned indices/policies instead of deleting *.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
zeebe/exporters/camunda-exporter/src/test/java/io/camunda/exporter/tasks/archiver/UsageMetricsArchiverJobIT.java Uses scoped refresh (refresh(testPrefix)) and shared timeout to reduce cluster-wide operations and flakiness.
zeebe/exporters/camunda-exporter/src/test/java/io/camunda/exporter/tasks/archiver/StandaloneDecisionArchiverJobIT.java Same scoped refresh/timeout approach for decision archiver tests.
zeebe/exporters/camunda-exporter/src/test/java/io/camunda/exporter/tasks/archiver/OpenSearchArchiverRepositoryIT.java Switches from global cleanup to per-test unique IDs and targeted deletion of indices/policies.
zeebe/exporters/camunda-exporter/src/test/java/io/camunda/exporter/tasks/archiver/ArchiverJobIT.java Adds per-test index prefixing and replicas=0 to reduce cross-test collisions and shard readiness issues.

Publicado originalmente por @copilot-pull-request-reviewer en camunda/camunda#57556 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions