[Flight client] Allow disabling the creation of a child allocator
- Langage dominant
- Java
- Étoiles
- 94
- Forks
- 152
- Merge moyen
- 3 j 16 h
- PR mergées (30 j)
- 11
Description
### Describe the enhancement requested
`FlightClient` [always creates a child allocator](https://github.com/apache/arrow-java/blob/7cbf15994ae7c82fbcb178dded6b3f128219d9ad/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java#L86). While this is good in the general case to track memory leaks, this prevents usage scenarios where vectors live longer than the Flight client.
What about adding a `FlightClient.Builder#createChildAllocator(boolean)` that would allow users to choose whether they want a child allocator (current behavior which will be the default) or directly use the provided one?
I can create a PR for this.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java, vers la ligne 86, et suivez FlightClient.Builder. Vérifiez que le comportement par défaut crée toujours un allocator enfant, tandis que la nouvelle option peut utiliser directement l’allocator fourni. Le travail est terminé lorsque les deux modes d’allocator sont couverts par les tests pertinents du client Flight.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100