Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] Drop branch DDL reports success when the branch directory cannot be deleted

オープン 初心者向け
#10,237 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java, spark
領域
databases

調査の方向性

FileSystemBranchManager.dropBranch を見つけ、fileIO.delete(branchPath, true) が IOException をどのように処理するかを確認します。その動作を createBranch、renameBranch、fastForward、CatalogBranchManager.dropBranch と比較し、その後、関連する branch または DDL のテストを見つけます。ブランチディレクトリの削除に失敗したことが呼び出し元に伝わり、DROP BRANCH DDL が成功を報告しなくなれば完了です。

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

説明

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

master

Compute Engine

JavaAPI / Flink / Spark (DDL)

Minimal reproduce step

FileSystemBranchManager.dropBranch catches the IOException thrown by fileIO.delete(branchPath, true), logs it at INFO level, and returns normally. Because the method returns void and throws nothing, the drop-branch DDL reports success even though the branch directory and all of its data are still on the filesystem.

Run ALTER TABLE t DROP BRANCH b (filesystem catalog) where the branch directory delete fails, for example due to a permission or filesystem error.

What doesn't meet your expectations?

The DDL succeeds, so the user believes the branch is gone, but its directory and data remain and storage is not reclaimed. A later CREATE BRANCH b with the same name then fails with "Branch name 'b' already exists", which is hard to explain to someone who was told the drop succeeded. The INFO message even says "Please try again", yet no error reaches the caller to prompt a retry.

When the branch directory cannot be deleted, the DDL should fail so the caller knows the branch was not dropped. This also matches createBranch, renameBranch, and fastForward in the same class, and the catalog-backed CatalogBranchManager.dropBranch, which all propagate the failure.

Anything else?

No response

Are you willing to submit a PR?
  • I'm willing to submit a PR!
主要言語
Java
スター
3.4k
フォーク
1.4k
平均マージ
1日 11時間
マージ済み PR(30日)
502

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

apache/paimon のほかの issue

apache/paimon の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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