Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

local-sort.max-num-file-handles below 2 causes a data-volume-dependent crash on spill

未关闭 适合新手
#10,292 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java

调研方向

从 AbstractBinaryExternalMerger.mergeChannelList 开始,跟踪读取 local-sort.max-num-file-handles 以及构造 merger 的位置。使用值 1 和多个 spill 文件重现问题,然后验证在排序开始之前,构造过程会通过明确的 IllegalArgumentException 拒绝小于 2 的 fan-in。

由索引模型根据 Issue 内容生成。

描述

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

master (1.5-SNAPSHOT)

Compute Engine

Any engine doing an external sort that spills (large sort / merge).

Minimal reproduce step
  1. Set local-sort.max-num-file-handles = 1.
  2. Run a sort large enough to produce more than one spill file.
What doesn't meet your expectations?

The job crashes with an IllegalArgumentException (a negative subList argument), but only after the second spill file appears. local-sort.max-num-file-handles (the external-merge fan-in, default 128) has no lower-bound validation, so it can be set to 1. With fan-in = 1, AbstractBinaryExternalMerger.mergeChannelList divides by maxFanIn - 1 = 0, yielding Integer.MAX_VALUE merges and a negative subList bound. Because it only triggers on the second spill, it passes small-data testing and then crash-loops in production as data grows (the job restarts on the same config and fails again). It should fail fast at construction with a clear message.

Anything else?

A fan-in of 1 is degenerate for a merge sort (it can never converge N runs), so rejecting it up front is correct.

Are you willing to submit a PR?
  • I'm willing to submit a PR!
主要语言
Java
星标
3.4k
派生
1.4k
平均合并
1 天 10 小时
30 天内合并 PR
472

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/paimon 的其他 Issue

查看 apache/paimon 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。