~bigbes/tarantool-etcd · parade

main · last commit 1 month ago · 2npkec0r

← Back to the parade

tarantool-etcd-0am --max-txn-ops not recursive and not configurable Lined Up

status: open P3 bug etcd-changelog-sweep
bd update tarantool-etcd-0am --claim bd close tarantool-etcd-0am
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-07-17T13:20:51Z
Updated2026-07-17T13:20:51Z
Description
etcd's checkTxnRequest/checkRequestOp recurse into nested txns with a shrinking maxTxnOps-opc budget (v3rpc/key.go), so a deeply nested txn cannot exceed the total.

app/etcd/txn.lua:235-244 validate_request checks only TOP-LEVEL counts against a hardcoded MAX_TXN_OPS = 128 (txn.lua:210). A nested txn tree can therefore carry far more than 128 ops. No role-config knob.

The top-level limit and the error message match etcd exactly, so this is narrow: make check recursive with a shrinking budget, add a max_txn_ops option.
Acceptance criteria
A nested txn exceeding the total budget is rejected with etcd's message; limit configurable via roles_cfg; test covers the nested overflow.

Depends on

No outgoing dependencies.

Depended on by

Nothing depends on this issue.

No comments.

  • Eugene Blikh created the issue · 2026-07-17T16:20:50Z
  • Eugene Blikh added label etcd-changelog-sweep · 2026-07-17T16:20:50Z
Stored rows — what this pane was built from, as read
issues 1 row
id tarantool-etcd-0am
content_hash 990386cb32b67cb5f216b1036ed262949e3a759d465d6cfae199d5b3a29156dd
title --max-txn-ops not recursive and not configurable
description etcd's checkTxnRequest/checkRequestOp recurse into nested txns with a shrinking maxTxnOps-opc budget (v3rpc/key.go), so a deeply nested txn cannot exceed the total. app/etcd/txn.lua:235-244 validate_request checks only TOP-LEVEL counts against a hardcoded MAX_TXN_OPS = 128 (txn.lua:210). A nested txn tree can therefore carry far more than 128 ops. No role-config knob. The top-level limit and the error message match etcd exactly, so this is narrow: make check recursive with a shrinking budget, add a max_txn_ops option.
design
acceptance_criteria A nested txn exceeding the total budget is rejected with etcd's message; limit configurable via roles_cfg; test covers the nested overflow.
notes
status open
priority 3
issue_type bug
assignee NULL
estimated_minutes NULL
created_at 2026-07-17T13:20:51Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-07-17T13:20:51Z
closed_at NULL
closed_by_session
external_ref NULL
spec_id
compaction_level 0
compacted_at NULL
compacted_at_commit NULL
original_size NULL
sender
ephemeral 0
wisp_type
pinned 0
is_template 0
mol_type
work_type
source_system
metadata <binary>
source_repo
close_reason
event_kind
actor
target
payload
await_type
await_id
timeout_ns 0
waiters
hook_bead
role_bead
agent_state
last_activity NULL
role_type
rig
due_at NULL
defer_until NULL
no_history 0
started_at NULL
is_blocked 0
labels 1 row
issue_id tarantool-etcd-0am
label etcd-changelog-sweep
events 2 rows
id 019f703c-a62a-74d6-be65-e1869eb6e484
issue_id tarantool-etcd-0am
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-07-17T16:20:50Z
id 019f703c-a62a-7d59-8e36-6a080cda3230
issue_id tarantool-etcd-0am
event_type label_added
actor Eugene Blikh
old_value NULL
new_value NULL
comment Added label: etcd-changelog-sweep
created_at 2026-07-17T16:20:50Z