main · last commit
1 month ago ·
2npkec0r
tarantool-etcd-828 iproto-impl: etcd_member_promote vs Cluster.MemberPromote
Lined Up
bd update tarantool-etcd-828 --claim
bd close tarantool-etcd-828
| Created by | Eugene Blikh |
| Owner | bigbes@gmail.com |
| Created | 2026-05-19T14:54:28Z |
| Updated | 2026-07-17T14:27:36Z |
Wrap the existing handler cluster.member_promote (already invoked by gRPC/JSON via defs.lua route etcdserverpb.Cluster.MemberPromote) as a Lua global etcd_member_promote callable via iproto CALL. Mechanical change in app/etcd/api.lua: add rawset(_G, 'etcd_member_promote', wrap('cluster', 'member_promote')) under the appropriate service block; append 'etcd_member_promote' 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 Cluster.MemberPromote 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.
etcd_member_promote is callable from net.box:call('etcd_member_promote', {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.
Epic tarantool-etcd-w8q. Handler at app/etcd/cluster.lua.
No outgoing dependencies.
tarantool-etcd-70j
— iproto-verify: etcd_member_promote vs Cluster.MemberPromote
blocks
| id | tarantool-etcd-828 |
| content_hash | 07dec43fc47708505ca97b18aaf13e621ccca512a7a74fe5c56e9fc9f0feea68 |
| title | iproto-impl: etcd_member_promote vs Cluster.MemberPromote |
| description | Wrap the existing handler cluster.member_promote (already invoked by gRPC/JSON via defs.lua route etcdserverpb.Cluster.MemberPromote) as a Lua global etcd_member_promote callable via iproto CALL. Mechanical change in app/etcd/api.lua: add rawset(_G, 'etcd_member_promote', wrap('cluster', 'member_promote')) under the appropriate service block; append 'etcd_member_promote' 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 Cluster.MemberPromote 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_member_promote is callable from net.box:call('etcd_member_promote', {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/cluster.lua. |
| status | open |
| priority | 3 |
| issue_type | task |
| assignee | NULL |
| estimated_minutes | NULL |
| created_at | 2026-05-19T14:54:28Z |
| 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 |
| issue_id | tarantool-etcd-828 |
| label | milestone:m4-iproto-parity |
| id | fe6ea764-14f7-528b-ae17-b154adedc9a6 |
| issue_id | tarantool-etcd-70j |
| type | blocks |
| created_at | 2026-05-19T17:54:28Z |
| created_by | Eugene Blikh |
| metadata | <binary> |
| thread_id | |
| depends_on_issue_id | tarantool-etcd-828 |
| depends_on_wisp_id | NULL |
| depends_on_external | NULL |
| id | 57e9f746-bc4b-567a-9dfa-44135e1de10f |
| issue_id | tarantool-etcd-828 |
| event_type | created |
| actor | Eugene Blikh |
| old_value | |
| new_value | |
| comment | NULL |
| created_at | 2026-05-19T17:54:27Z |
| id | 627be1d4-945d-5dbb-aa06-a53532c63d7a |
| issue_id | tarantool-etcd-828 |
| 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:18Z |
No comments.