Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Graph analytics: ArangoDB queries are not cut at their budget, so one slow iteration can run into the cell cap and leave no row #305

Closed

Description

@tae898

The graph analytics lane checks a query's time budget only between iterations, and the first (cold) run has no limit at all. For ArangoDB the client also has no server-side limit (request_timeout=None), so one call that does not finish can only be stopped by the 7200 s cell cap, and the cell then leaves no row.

Observed on the 26.10.1 measurement host: l2_arangodb_graph_olap_sf1full_r1 ran 7213 s and was recorded rc=-1 timeout_after_7200s with no row. Its client log shows build 172 s, five fast queries, then olap-triangles with one iteration at p50 3136 s against a 300 s budget, then lsqb_q1 with one iteration at 1912 s, and the cap killed the cell during lsqb_q2.

Proposed fix, ArangoDB only and only when the query has a budget:

  • ArangoGraph.run_olap passes the AQL option maxRuntime (python-arango max_runtime, seconds) equal to the budget budget_lookup.budget_for returned for that query, on the cold run and on every timed iteration.
  • The server answers a killed query with error 1500 "query killed". The adapter turns exactly that into a QueryKilled exception; any other error still fails the cell.
  • The loop records a kill as a censored measurement, like a budget that ran out: <q>_censored true, the time is a floor, iterations are the ones that finished, and a query killed before it answered gets no answer digest (record_censored_answer). The cell does not fail.
  • The row carries olap_server_limit and <q>_server_limit_s, and killed rows do not vote in the derived budgets.
  • Every other engine runs exactly as before.

Unit tests use a fake client. A smoke test against a real ArangoDB server (error number, kill latency on a long traversal) is a script in the PR and runs on a quiet machine.

Same weakness on the other engines (no per-query server limit is used anywhere in this lane): not changed here, to be decided separately.

Activity

  1. added 3 commits that reference this issue on Oct 20, 2026
    bafebf4
    f907a20
    f5ed316
  2. added a commit that references this issue on Oct 20, 2026
    1779b97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions