Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix java.lang.ArrayIndexOutOfBoundsException in multi-node cluster run
Fixes #2278 Address the `java.lang.ArrayIndexOutOfBoundsException` error in multi-node cluster runs. * **Error Handling:** - Add error handling for `scoredDataOutPtr` and `scoredDataLengthLongPtr` pointers in the `score`, `predictLeaf`, `featuresShap`, and `innerPredict` methods in `LightGBMBooster.scala`. - Ensure proper deletion of `scoredDataOutPtr` and `scoredDataLengthLongPtr` pointers after use in the `innerPredict` method. * **Testing:** - Add a new test file `LightGBMBoosterTest.scala`. - Add test cases to verify that the `score`, `predictLeaf`, `featuresShap`, and `innerPredict` methods handle `scoredDataOutPtr` and `scoredDataLengthLongPtr` pointers correctly. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/SynapseML/issues/2278?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information