[Java] Find a proper way to test VM options (share system property between Main/Test code)
- Lingua principale
- Java
- Stelle
- 94
- Fork
- 152
- Merge medio
- 3g 16h
- PR unite (30g)
- 11
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da java/memory/memory-core/src/main/java/org/apache/arrow/memory/BaseAllocator.java, in particolare dall’accesso alla system property DEBUG_ALLOCATOR. Verifica come Java Main e il codice di test ricevono attualmente le system properties su JDK 17+ e perché è necessario il workaround di reflection. Il lavoro è completato quando esiste una soluzione completa senza reflection che consenta ai test di esercitare le opzioni VM pertinenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- testing-qa
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100