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

REST Catalog alterTable silently reports success when the server returns a non-table/column 404

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
api, database

調査の方向性

REST Catalog の alterTable エントリポイントから開始し、TABLE と COLUMN 以外の 404 リソースタイプに対する NoSuchResourceException の処理を調査します。issue で言及されている、対応する createBranch のデフォルトブランチと比較します。DATABASE が見つからない場合のようなマッピングされていない 404 が、暗黙的に成功を返さなくなれば完了です。同時データベース削除の再現でエラーが報告されることを確認してください。

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

説明

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

master (1.5-SNAPSHOT)

Compute Engine

Any engine using the REST Catalog.

Minimal reproduce step
  1. Use a REST catalog.
  2. Call alterTable(identifier, changes, ignoreIfNotExists = false) in a situation where the REST server answers with a 404 whose resource type is neither TABLE nor COLUMN, for example a DATABASE not-found because the table's database was concurrently dropped.
What doesn't meet your expectations?

alterTable returns normally and reports success even though the ALTER did not apply. The NoSuchResourceException handler only covers the TABLE and COLUMN resource types; for any other type it falls through the if/else-if chain and the method returns without error, so a failed alter is silently swallowed.

Anything else?

The sibling createBranch already rethrows in the analogous default branch of the same kind of dispatch. alterTable was the only one that let an unmapped 404 fall through to silent success.

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

環境構築

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

はじめの一歩

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

apache/paimon のほかの issue

apache/paimon の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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