~bigbes/tarantool-etcd · parade

main · last commit 1 month ago · 2npkec0r

← Back to the parade

tarantool-etcd-4b6 Nested-txn duplicate-key detection is flat, not recursive Lined Up

status: open P2 bug etcd-changelog-sweep
bd update tarantool-etcd-4b6 --claim bd close tarantool-etcd-4b6
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-07-17T13:20:51Z
Updated2026-07-17T13:20:51Z
Description
etcd's checkIntervals recursively rejects duplicate puts across nesting levels and puts intersecting delete ranges (ErrDuplicateKey), with the then/else carve-out.

app/etcd/txn.lua:214-233 check_duplicate scans ONE FLAT op list. Nested EXECUTION is otherwise fully correct (txn.lua:182-198; auth recurses at auth.lua:321-322) — only validation fails to recurse. TestTxnNested passes because it tests execution, not validation.

Impact: a nested txn with conflicting puts on the same key is accepted where etcd rejects it, giving order-dependent results.
Acceptance criteria
Duplicate put across nesting levels rejected with ErrDuplicateKey shape; put intersecting a delete range rejected; then/else carve-out preserved; test covers the nested case.

Depends on

No outgoing dependencies.

Depended on by

Nothing depends on this issue.

No comments.

  • Eugene Blikh created the issue · 2026-07-17T16:20:51Z
  • Eugene Blikh added label etcd-changelog-sweep · 2026-07-17T16:20:51Z
Stored rows — what this pane was built from, as read
issues 1 row
id tarantool-etcd-4b6
content_hash a21c1b53991947f5c9851d56fe61a624617e31e589fc020c0a1b0d35444734b5
title Nested-txn duplicate-key detection is flat, not recursive
description etcd's checkIntervals recursively rejects duplicate puts across nesting levels and puts intersecting delete ranges (ErrDuplicateKey), with the then/else carve-out. app/etcd/txn.lua:214-233 check_duplicate scans ONE FLAT op list. Nested EXECUTION is otherwise fully correct (txn.lua:182-198; auth recurses at auth.lua:321-322) — only validation fails to recurse. TestTxnNested passes because it tests execution, not validation. Impact: a nested txn with conflicting puts on the same key is accepted where etcd rejects it, giving order-dependent results.
design
acceptance_criteria Duplicate put across nesting levels rejected with ErrDuplicateKey shape; put intersecting a delete range rejected; then/else carve-out preserved; test covers the nested case.
notes
status open
priority 2
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-4b6
label etcd-changelog-sweep
events 2 rows
id 019f703c-a85c-7c3c-8705-76d1b2efecfe
issue_id tarantool-etcd-4b6
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-07-17T16:20:51Z
id 019f703c-a85d-7612-aa23-3d4cc45618c2
issue_id tarantool-etcd-4b6
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:51Z