[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scan
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
PartitionStatsHandlerTestBase.testCopyOnWriteDelete() から始めてください。このメソッドは、返された CloseableIterable を閉じずに testTable.newPartitionStatisticsScan().scan() を2回呼び出しています。同じベースクラス内の他のscan呼び出し付近で使われている try-with-resources のパターンに従ってください。両方のscanが閉じられ、TestAvroPartitionStatsHandler がWindows上でIOExceptionを出さずに一時ディレクトリをクリーンアップできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Apache Iceberg version
main (development)
Query engine
None
Please describe the bug 🐞
PartitionStatsHandlerTestBase.testCopyOnWriteDelete() performs two calls to testTable.newPartitionStatisticsScan().scan() without closing the resulting CloseableIterable.
Because the underlying Avro reader file descriptor remains open, on Windows the operating system locks the temporary metadata statistics files (partition-stats-1-....avro and partition-stats-3-....avro). When JUnit 5's @TempDir extension attempts to clean up the temporary directory during test teardown, it fails with:
\
TestAvroPartitionStatsHandler > testCopyOnWriteDelete() FAILED
java.io.IOException: Failed to delete temp directory C:\Users...\AppData\Local\Temp\junit-...\metadata\partition-stats-1-...avro
\\
Closing both scans in try-with-resources (consistent with other test methods in PartitionStatsHandlerTestBase such as lines 209, 287, and 444) releases the open file handles and resolves the failure.
- 主要言語
- Java
- スター
- 9.4k
- フォーク
- 3.7k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 160
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iceberg のほかの issue
-
Spark: Test INSERT targets with computed IDENTIFIER expressions対応中かも @shivadarshan-devadiga が 7 日前に担当しました。 オープンimprovement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Flink: JdbcLockFactory concurrent lock-table creation can fail with "table already exists" and restart the job対応中かも @adiranjan25 が 16 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/iceberg#18797 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tables対応中かも @yusufyildiz34 が 28 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg#18632 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToList対応中かも @mohamed-elbrik が 34 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Parquet TIME_MILLIS statistics are not converted to microseconds対応中かも @chenjian2664 が 42 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
speakeasy-api/speakeasy#2159 ·
メンテナーはふだん 1 日以内に返信
-
area: cli
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vitruv-tools/NeoJoin#415 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
メンテナーはふだん 6 日以内に返信
-
account assessment course feature lecture
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug db/dameng user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信