[Gandiva][Java] Safeguard jvm before loading the gandiva library
- 主要言語
- Java
- スター
- 94
- フォーク
- 152
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 11
説明
Today we load the gandiva library always when trying to use the jni bridge, but we have run into issues causing the jvm to crash in untested paths.
Proposal is to do load the library in a separate process first and if it works only then load in the current process.
This would be done only once at startup/first load.
**Reporter**: [Praveen Kumar](https://issues.apache.org/jira/browse/ARROW-4003) / @praveenbingo
**Note**: *This issue was originally created as [ARROW-4003](https://issues.apache.org/jira/browse/ARROW-4003). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
コントリビューションガイド
調査の方向性
まず、Java JNI ブリッジの最初のライブラリロード経路と、起動時または初回ロード時の初期化が現在どのように機能しているかを追跡します。提案されている別プロセスでのロードチェックを実装し、チェックが成功した場合にのみ現在のプロセスでロードするようにしたうえで、チェックが一度だけ実行されることを保証します。失敗するパスやサポートされていないパスでも JVM が安全なままであることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100