REST Catalog alterTable silently reports success when the server returns a non-table/column 404
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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
- Use a REST catalog.
- Call
alterTable(identifier, changes, ignoreIfNotExists = false)in a situation where the REST server answers with a 404 whose resource type is neitherTABLEnorCOLUMN, for example aDATABASEnot-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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/paimon のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
apache/arrow-java#1311 ·
メンテナーはふだん 2 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
IBM/networking-java-sdk#204 ·
-
bug Technical Debt
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
avniproject/avni-server#1080 ·