~bigbes/tarantool-etcd · parade

main · last commit 1 month ago · 2npkec0r

← Back to the parade

tarantool-etcd-ymm iproto-impl: etcd_maintenance_move_leader vs Maintenance.MoveLeader Lined Up

status: open P3 task milestone:m4-iproto-parity
bd update tarantool-etcd-ymm --claim bd close tarantool-etcd-ymm
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-05-19T14:54:41Z
Updated2026-07-17T14:27:36Z
Description
Wrap the existing handler maintenance.move_leader (already invoked by gRPC/JSON via defs.lua route etcdserverpb.Maintenance.MoveLeader) as a Lua global etcd_maintenance_move_leader callable via iproto CALL. Mechanical change in app/etcd/api.lua: add rawset(_G, 'etcd_maintenance_move_leader', wrap('maintenance', 'move_leader')) under the appropriate service block; append 'etcd_maintenance_move_leader' to the funcs table so box.schema.func.create plus guest grant runs at role apply; document the wrapper in the module-level LDoc comment. If Maintenance.MoveLeader returns UNIMPLEMENTED today, the wrapper still gets added so the iproto caller observes the same UNIMPLEMENTED error gRPC would return. Election.Observe is server-streaming over gRPC; iproto has no stream primitive, so propose a polling shape (observe_create/_pull/_cancel) mirroring the Watch precedent at api.lua:81-83.
Acceptance criteria
etcd_maintenance_move_leader is callable from net.box:call('etcd_maintenance_move_leader', {req}) with no Lua error before handler dispatch. Successful request shape produces same successful response shape as gRPC. box.schema.func.create plus guest grant idempotent on role re-apply.
Notes
Epic tarantool-etcd-w8q. Handler at app/etcd/maintenance.lua.

Depends on

No outgoing dependencies.

Depended on by

  • tarantool-etcd-cz5 — iproto-verify: etcd_maintenance_move_leader vs Maintenance.MoveLeader blocks

No comments.

  • Eugene Blikh created the issue · 2026-05-19T17:54:41Z
  • Eugene Blikh tarantool-etcd-cz5 now depends on this · 2026-05-19T17:54:42Z
  • Eugene Blikh added label milestone:m4-iproto-parity · 2026-05-21T14:37:13Z
Stored rows — what this pane was built from, as read
issues 1 row
id tarantool-etcd-ymm
content_hash 5abccb539c482913cabd242acf2b32afd6eb182fda57781a502ac4411d704a0d
title iproto-impl: etcd_maintenance_move_leader vs Maintenance.MoveLeader
description Wrap the existing handler maintenance.move_leader (already invoked by gRPC/JSON via defs.lua route etcdserverpb.Maintenance.MoveLeader) as a Lua global etcd_maintenance_move_leader callable via iproto CALL. Mechanical change in app/etcd/api.lua: add rawset(_G, 'etcd_maintenance_move_leader', wrap('maintenance', 'move_leader')) under the appropriate service block; append 'etcd_maintenance_move_leader' to the funcs table so box.schema.func.create plus guest grant runs at role apply; document the wrapper in the module-level LDoc comment. If Maintenance.MoveLeader returns UNIMPLEMENTED today, the wrapper still gets added so the iproto caller observes the same UNIMPLEMENTED error gRPC would return. Election.Observe is server-streaming over gRPC; iproto has no stream primitive, so propose a polling shape (observe_create/_pull/_cancel) mirroring the Watch precedent at api.lua:81-83.
design
acceptance_criteria etcd_maintenance_move_leader is callable from net.box:call('etcd_maintenance_move_leader', {req}) with no Lua error before handler dispatch. Successful request shape produces same successful response shape as gRPC. box.schema.func.create plus guest grant idempotent on role re-apply.
notes Epic tarantool-etcd-w8q. Handler at app/etcd/maintenance.lua.
status open
priority 3
issue_type task
assignee NULL
estimated_minutes NULL
created_at 2026-05-19T14:54:41Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-07-17T14:27:36Z
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-ymm
label milestone:m4-iproto-parity
dependencies 1 row
id 0ed412c2-bdc1-5efe-a4a2-30dbb4adc51b
issue_id tarantool-etcd-cz5
type blocks
created_at 2026-05-19T17:54:42Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-ymm
depends_on_wisp_id NULL
depends_on_external NULL
events 2 rows
id 7bff7897-834b-5fdd-b8d7-cefa464e9a28
issue_id tarantool-etcd-ymm
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-05-19T17:54:41Z
id f406968b-245f-5f2c-a1b0-3f685d35ca2e
issue_id tarantool-etcd-ymm
event_type label_added
actor Eugene Blikh
old_value NULL
new_value NULL
comment Added label: milestone:m4-iproto-parity
created_at 2026-05-21T14:37:13Z