Skip to content

gRPC per-transaction executor + open ArcadeDB transaction leak on abandoned clients — no idle reaper #4802

Closed

Description

@ruispereira

Affected version: 26.6.1
Component: ArcadeDbGrpcService.beginTransaction / TransactionContext
Severity: MEDIUM-HIGH

Summary

Each beginTransaction creates a dedicated daemon single-thread executor and an
open ArcadeDB transaction, registered in activeTransactions. They are released
only on explicit commit/rollback or server shutdown — there is no association with
the gRPC call lifecycle and no idle reaper.

Code

ArcadeDbGrpcService.java:125-144 (context + executor), :1028-1044 (commit/rollback cleanup only).

Impact

A client that calls beginTransaction and disconnects leaks the executor thread,
the open transaction (holding locks/WAL), and the Database reference
indefinitely → resource exhaustion + lock retention.

Suggested fix

Run a scheduled reaper that rolls back + shuts down executors past a
max-idle/max-age, or tie the transaction to a server-streaming call so
cancellation cleans it up.

Activity

  1. added this to the 26.7.1 milestone on Jun 29, 2026
  2. self-assigned this
    on Jun 30, 2026
  3. added 3 commits that reference this issue on Jun 30, 2026
  4. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions