apache / apache/arrow-java

[Flight client] Allow disabling the creation of a child allocator

オープン
#1,051 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
Type: enhancement
主要言語
Java
スター
94
フォーク
152
平均マージ
3日 16時間
マージ済み PR(30日)
11

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java の 86 行目付近から始めて、FlightClient.Builder を追跡します。デフォルトでは引き続き子 allocator が作成され、新しいオプションでは提供された allocator を直接使用できることを確認します。関連する Flight クライアントのテストで両方の allocator モードがカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。