Skip to content

ThreeNodesTimeSeriesLoadTestIT flaky: LINE_PROTOCOL append before a schema change is not retried (points lost), and checkSchema races replication #10970

Closed

Description

@robfrank

Summary

ThreeNodesTimeSeriesLoadTestIT (load-tests) failed 2 of 4 attempts on 26.11.1-SNAPSHOT images (plain main code paths; the image differed from main only in unrelated query code). Two independent causes:

  1. LINE_PROTOCOL ingest loses points on a schema-change race. At ingest start the server answers HTTP 500: Failed to append timeseries samples after compaction-race retries -> ... prepared at Raft index 269, before the schema change applied at index 271 ... Please retry the operation. The error says "retry", but it reaches the client wrapped in an IOException (not a retryable exception), so the client does not retry and the points are lost: the leg converged at 28,865 of 30,004 points on every node (consistent but incomplete).
  2. Setup race: checkSchema reads a follower before the database has been replicated there and fails with DatabaseNotFound.

Expected

  1. The server maps this append failure to a retryable status (or retries it itself, as the message suggests), so no points are lost.
  2. The test waits until the database exists on every node before checking the schema.

Activity

  1. added this to the 26.11.1 milestone on Oct 29, 2026
  2. self-assigned this
    on Oct 29, 2026
  3. added
    severity:minor
    on Oct 29, 2026
  4. added
    e2e
    ha
    server
    timeseries
    on Oct 29, 2026
  5. added
    in progress
    on Oct 29, 2026
  6. added a commit that references this issue on Oct 30, 2026
  7. robfrank commented on Oct 30, 2026

    @robfrank
    CollaboratorAuthor

    When a time-series append lost its conflict three times, the shard wrapped the conflict in a plain IOException, so the HTTP layer answered 500 and a client keyed on the status never retried and lost the batch. The conflict is now rethrown as itself and maps to 503, and the load test's line-protocol client retries a 503 and waits for the database to exist on the node.

    Still open: A multi-measurement line-protocol batch is not atomic, so a client retry after a 503 can re-send measurements that were already committed. This was already true for any 503 on this route and is unchanged. ThreeNodesTimeSeriesLoadTestIT needs containers and was not run.

    Fixed by #10972.


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  8. removed
    in progress
    on Oct 30, 2026
  9. added a commit that references this issue on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buge2ehaserverseverity:minortimeseries

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions