~bigbes/tarantool-etcd · parade

main · last commit 1 month ago · 2npkec0r

← Back to the parade

tarantool-etcd-5ya Lock rejects lease=0 instead of auto-granting a session lease Lined Up

status: open P3 bug etcd-changelog-sweep
bd update tarantool-etcd-5ya --claim bd close tarantool-etcd-5ya
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-07-17T13:21:26Z
Updated2026-07-17T13:21:26Z
Description
etcd's v3lock/lock.go auto-grants a fresh 60s orphaned session lease when lease==0.

app/etcd/lock.lua:154-157 returns 'etcdserver: lease is not provided'. Everything else about Lock matches (key format, queue order, unlock-by-anyone, lease-expiry release, both wires).

Judgment call: test/lock_test.lua:37-40 actively PINS the divergent rejection, so someone chose this deliberately at some point — but it is recorded nowhere. Decide and record: either auto-grant to match etcd, or document the divergence and keep the test as the pin.
Acceptance criteria
Either Lock(lease=0) auto-grants a default-TTL lease and the test is updated, or docs/TODO.md records the divergence with its rationale.

Depends on

No outgoing dependencies.

Depended on by

Nothing depends on this issue.

No comments.

  • Eugene Blikh created the issue · 2026-07-17T16:21:26Z
  • Eugene Blikh added label etcd-changelog-sweep · 2026-07-17T16:21:26Z
Stored rows — what this pane was built from, as read
issues 1 row
id tarantool-etcd-5ya
content_hash 9b560100fb333c692102636077dcdb38c0f9ff7d17a59383c291505c5fd395ec
title Lock rejects lease=0 instead of auto-granting a session lease
description etcd's v3lock/lock.go auto-grants a fresh 60s orphaned session lease when lease==0. app/etcd/lock.lua:154-157 returns 'etcdserver: lease is not provided'. Everything else about Lock matches (key format, queue order, unlock-by-anyone, lease-expiry release, both wires). Judgment call: test/lock_test.lua:37-40 actively PINS the divergent rejection, so someone chose this deliberately at some point — but it is recorded nowhere. Decide and record: either auto-grant to match etcd, or document the divergence and keep the test as the pin.
design
acceptance_criteria Either Lock(lease=0) auto-grants a default-TTL lease and the test is updated, or docs/TODO.md records the divergence with its rationale.
notes
status open
priority 3
issue_type bug
assignee NULL
estimated_minutes NULL
created_at 2026-07-17T13:21:26Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-07-17T13:21:26Z
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-5ya
label etcd-changelog-sweep
events 2 rows
id 019f703d-30ae-7d81-b54b-38118b2386ec
issue_id tarantool-etcd-5ya
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-07-17T16:21:26Z
id 019f703d-30af-7461-99c4-43bf7a8fd1fa
issue_id tarantool-etcd-5ya
event_type label_added
actor Eugene Blikh
old_value NULL
new_value NULL
comment Added label: etcd-changelog-sweep
created_at 2026-07-17T16:21:26Z