[Server] Add the server-side primary-key table bulk-load protocol

オープン
#4,224 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@Anurag15v がすでに取り組んでいます。

2026年10月4日 から。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java

調査の方向性

まず、内部の Coordinator RPC インターフェースと既存のトランザクションおよびリカバリの経路を特定します。target fencing、マニフェストの検証、レプリカの復元、failover と再起動の再調整、永続的な commit の処理を追跡します。完了の条件は、一覧にあるライフサイクル操作がテーブルまたはパーティションに対して、部分的な結果を公開することなく動作することです。

索引モデルが issue の本文から書いたものです。

説明

Search before asking
  • I searched in the issues and found nothing similar.
Description

Add a complete server-side transaction protocol for atomically loading an empty
primary-key table or partition from externally built KV snapshots.

The server must own the transaction lifecycle, prevent access while the target
is being loaded, validate the submitted manifest, install every bucket, and
publish the target only after the complete result is ready.

The protocol should be usable through the internal Coordinator RPC interface.
A high-level client SDK is tracked separately.

Scope
  • Add Begin, GetInProgress, Commit, and Abort RPCs.
  • Support both a complete primary-key table and one physical partition as the
    transaction target.
  • Reject non-primary-key and non-empty targets.
  • Freeze the target identity, schema, bucket count, remote data directory, and
    snapshot IDs when beginning a transaction.
  • Fence the target and prevent ordinary access until it becomes active again.
  • Allow only one active bulk-load transaction for a target.
  • Validate the manifest and require complete coverage of every target bucket.
  • Persist the Commit decision before publishing the imported snapshots.
  • Restore the imported snapshots on the assigned replicas.
  • Publish the complete target atomically after all required replicas are ready.
  • Abort transactions that have not crossed the durable Commit decision.
  • Resume transactions after Coordinator failover.
  • Reconcile TabletServer restart, leader change, and assignment change during
    protocol execution.
  • Retain terminal results for recovery and remove expired transaction metadata.
  • Protect active bulk-load files from orphan cleanup.
  • Reject unsupported rolling-upgrade combinations through server capability
    checks.
Willingness to contribute
  • I'm willing to submit a PR!
主要言語
Java
スター
2.2k
フォーク
663
平均マージ
2日 21時間
マージ済み PR(30日)
118

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/fluss のほかの issue

apache/fluss の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。