[Java] Problem to get current reservation of JVM direct memory on macOS Big Sur
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 TestReservationListener.java 中 testDirectReservationListener 附近開始,並在受影響的 macOS/JVM 設定上執行報告中顯示的 Maven 命令。檢查用於直接記憶體保留的 java.nio.Bits 欄位,並驗證測試在所參照的 CI 工作流程中也能通過。
由索引模型根據 Issue 內容生成。
描述
Hi Team,
Just compiling java dataset module it compile without problems but the test related to get current reservation of JVM direct memory is failing on my local machine macOS Big Sur 11.5.2.
Command line:
mvn -Darrow.cpp.build.dir=../java-dist/lib clean install
Test code:
/**
* Get current reservation of jVM direct memory. Visible for testing.
*/
@VisibleForTesting
public long getCurrentDirectMemReservation() {
try {
final Class<?> classBits = Class.forName("java.nio.Bits");
final Field f = classBits.getDeclaredField("reservedMemory");
f.setAccessible(true);
return ((AtomicLong) f.get(null)).get();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Error message:
[ERROR] testDirectReservationListener Time elapsed: 0.028 s <<< ERROR!
java.lang.RuntimeException: java.lang.NoSuchFieldException: reservedMemory
at org.apache.arrow.dataset.jni.TestReservationListener.testDirectReservationListener(TestReservationListener.java:50)
If I changed from classBits.getDeclaredField("reservedMemory") to
classBits.getDeclaredField("RESERVED_MEMORY") all the test finished without problems. Seeing this way to obtain reserved memory on Jvm.java.
Consider: Current test on macOS finished ok on the ci workflows.
Reporter: David Dali Susanibar Arce / @davisusanibar
Note: This issue was originally created as ARROW-15834. Please see the migration documentation for further details.
- 主要語言
- Java
- 星號
- 97
- 分支
- 158
- 平均合併
- 7 天 16 小時
- 30 天內合併 PR
- 32
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/arrow-java 的其他 Issue
-
ArrowFlightJdbcArray.getArray(index, count) can read past the end of the array slice可能已有人在做 @Arawoof06 於 79 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
apache/arrow-java#1236 ·
維護者通常 2 天內回覆
-
[Java][JDBC] ClobConsumer writes past VarCharVector data buffer for large CLOBs可能已有人在做 @Arawoof06 於 84 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
apache/arrow-java#1230 ·
維護者通常 2 天內回覆
-
[Java] DictionaryEncoder doesn't crash when decoding index outside of Dictionary可能已有人在做 @jakobhok-neo4j 於 141 天前認領。 未關閉Type: bug
難度 2/5 1-3 小時 新手友好度 74/100
apache/arrow-java#1158 ·
維護者通常 2 天內回覆
-
Type: enhancement
難度 2/5 1-3 小時 新手友好度 76/100
apache/arrow-java#1100 ·
維護者通常 2 天內回覆
-
Type: enhancement
難度 4/5 3-5 天 新手友好度 76/100
apache/arrow-java#1319 ·
維護者通常 2 天內回覆
查看 apache/arrow-java 的全部 Issue
相似的 Issue
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 62/100
opfab/operatorfabric-core#10653 ·
維護者通常 1 天內回覆
-
GeminiUtil placeholder user turn ("Continue output. DO NOT look at this line ...") is flagged by prompt injection filters可能已有人在做 @innoprej 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
salesforce/multicloudj#667 ·
維護者通常 1 天內回覆
-
bug documentation
難度 2/5 1-3 小時 新手友好度 88/100
MetricsHub/winrm-java#202 ·
維護者通常 1 天內回覆
-
ASCN/cBioPortal Pipelines/cBioPortal
難度 2/5 1-3 小時 新手友好度 64/100
mskcc/smile-server#1990 ·