~bigbes/tarantool-etcd · parade

main · last commit 1 month ago · 2npkec0r

← Back to the parade

tarantool-etcd-zws Replica route: revision alignment with upstream Lined Up

status: open P2 task milestone:m5-clustering
bd update tarantool-etcd-zws --claim bd close tarantool-etcd-zws
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-05-20T06:17:55Z
Updated2026-07-17T14:27:37Z
Description
In replica mode the local global revision sequence (box.sequence in revision.lua) must mirror upstream's revisions exactly so that Range/Watch reads return etcd-consistent create_revision/mod_revision/header.revision.

Work:
- While replica mode is active, the local revision allocator must NOT mint its own revisions for replicated writes; it must set revision = the upstream mod_revision carried by each Range/Watch event.
- Decide handling of the box.sequence: drive it to upstream's current revision (set, not next()) as events apply, or bypass it entirely for replicated mutations via the *_internal write paths.
- Ensure header.revision returned to local clients equals the latest synced upstream revision, and compact_revision tracks upstream compaction.

This is cross-cutting with bootstrap + watch-tail; it defines the invariant both must uphold.
Notes
revision.lua owns the box.sequence. Replicated writes likely go through put_internal/delete_range_internal with an explicit revision arg to avoid double-allocation.

Depends on

  • tarantool-etcd-7ey — Replica route: connect as read-only replica to an existing etcd cluster parent-child open
  • tarantool-etcd-uee — Replica route: bootstrap snapshot import blocks open

Depended on by

Prerequisite chain — everything this waits on, transitively

  • tarantool-etcd-7ey — Replica route: connect as read-only replica to an existing etcd cluster parent-child open
  • tarantool-etcd-16d — Implement Maintenance.Snapshot RPC (streaming DB snapshot) related open
  • tarantool-etcd-uee — Replica route: bootstrap snapshot import blocks open
  • tarantool-etcd-jg3 — Replica route: config block + role plumbing blocks open

Unblocks — everything waiting on this, transitively

No comments.

  • Eugene Blikh created the issue · 2026-05-20T09:17:55Z
  • Eugene Blikh added under epic tarantool-etcd-7ey · 2026-05-20T09:18:15Z
  • Eugene Blikh added dependency on tarantool-etcd-uee · 2026-05-20T09:18:18Z
  • Eugene Blikh tarantool-etcd-hlx now depends on this · 2026-05-20T09:18:19Z
  • Eugene Blikh added label milestone:m5-clustering · 2026-05-21T14:37:42Z
Stored rows — what this pane was built from, as read
issues 1 row
id tarantool-etcd-zws
content_hash b99aec7b0025f26f4e59b5bf3e6287ee00f117d8f119775c13dcfbb23132d00e
title Replica route: revision alignment with upstream
description In replica mode the local global revision sequence (box.sequence in revision.lua) must mirror upstream's revisions exactly so that Range/Watch reads return etcd-consistent create_revision/mod_revision/header.revision. Work: - While replica mode is active, the local revision allocator must NOT mint its own revisions for replicated writes; it must set revision = the upstream mod_revision carried by each Range/Watch event. - Decide handling of the box.sequence: drive it to upstream's current revision (set, not next()) as events apply, or bypass it entirely for replicated mutations via the *_internal write paths. - Ensure header.revision returned to local clients equals the latest synced upstream revision, and compact_revision tracks upstream compaction. This is cross-cutting with bootstrap + watch-tail; it defines the invariant both must uphold.
design
acceptance_criteria
notes revision.lua owns the box.sequence. Replicated writes likely go through put_internal/delete_range_internal with an explicit revision arg to avoid double-allocation.
status open
priority 2
issue_type task
assignee NULL
estimated_minutes NULL
created_at 2026-05-20T06:17:55Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-07-17T14:27:37Z
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 1
labels 1 row
issue_id tarantool-etcd-zws
label milestone:m5-clustering
dependencies 3 rows
id 0ec497b5-b954-52f2-853f-28088b75001e
issue_id tarantool-etcd-zws
type parent-child
created_at 2026-05-20T09:18:15Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-7ey
depends_on_wisp_id NULL
depends_on_external NULL
id 304c29b1-c2ec-58f3-bcc7-08307103fcea
issue_id tarantool-etcd-zws
type blocks
created_at 2026-05-20T09:18:18Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-uee
depends_on_wisp_id NULL
depends_on_external NULL
id 529b03b2-232a-5c53-af89-5727a252fca1
issue_id tarantool-etcd-hlx
type blocks
created_at 2026-05-20T09:18:19Z
created_by Eugene Blikh
metadata <binary>
thread_id
depends_on_issue_id tarantool-etcd-zws
depends_on_wisp_id NULL
depends_on_external NULL
events 2 rows
id 4d6ef7c8-62fe-5bd6-b1be-e6df257e14df
issue_id tarantool-etcd-zws
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-05-20T09:17:55Z
id 9f8323da-55e4-588c-ac88-f376bb20465c
issue_id tarantool-etcd-zws
event_type label_added
actor Eugene Blikh
old_value NULL
new_value NULL
comment Added label: milestone:m5-clustering
created_at 2026-05-21T14:37:42Z