apache / apache/arrow-java

[Java] Find a proper way to test VM options (share system property between Main/Test code)

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

描述

### Describe the enhancement requested

Java Test code and Java Main code cannot share system property variables.

The current workaround is to use reflection on unit testing code to override main code system properties.

We need a complete solution that covers JDK17+ Java versions without reflection access to test for example `System.getProperty(DEBUG_ALLOCATOR)` at https://github.com/apache/arrow/blob/main/java/memory/memory-core/src/main/java/org/apache/arrow/memory/BaseAllocator.java#L52

### Component(s)

Java

贡献指南

打开贡献指南

调研方向

从 java/memory/memory-core/src/main/java/org/apache/arrow/memory/BaseAllocator.java 开始,尤其调查对 DEBUG_ALLOCATOR system property 的访问。调查 Java Main 和测试代码当前如何在 JDK 17+ 上接收 system properties,以及为什么需要 reflection workaround。完成的标准是提供一个完整的非 reflection 解决方案,使测试能够执行相关的 VM options。

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

评估

技术栈
java
领域
testing-qa
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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