apache / apache/arrow-java

[Java] Dummy NPEs in DefaultAllocationManagerOption

未关闭
#258 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Type: enhancement
主要语言
Java
星标
94
派生
152
平均合并
3 天 16 小时
30 天内合并 PR
11

描述

Looking at DefaultAllocationManagerOption [1], I see that we could prevent dummy NPEs when trying to convert an often not-set environment option into enums.
In my case, it was a bit painful to have this error, even if properly caught, because it was polluting debug when looking for unexpected NPEs. This was raising false positives.
 
I was wondering if you were open to a pull request to change this little inconvenience?
 
[1]

**Reporter**: [Olivier Peyrusse](https://issues.apache.org/jira/browse/ARROW-13697)

**Note**: *This issue was originally created as [ARROW-13697](https://issues.apache.org/jira/browse/ARROW-13697). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

贡献指南

打开贡献指南

调研方向

首先阅读 java/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java 第64-82行附近的内容,重点关注将未设置的环境选项转换为 enums 的过程。确认未设置选项时的当前行为,并验证由此产生的处理不再生成虚假的 NullPointerExceptions,同时保留预期的选项行为。

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

评估

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

把新 issue 发到你的邮箱

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