Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: java.lang.ArrayIndexOutOfBoundsException in multi-node cluster run #2282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dciborow
Copy link
Contributor

@dciborow dciborow commented Sep 7, 2024

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.

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).
@dciborow dciborow changed the title Fix java.lang.ArrayIndexOutOfBoundsException in multi-node cluster run Fix: java.lang.ArrayIndexOutOfBoundsException in multi-node cluster run Sep 7, 2024
@dciborow dciborow changed the title Fix: java.lang.ArrayIndexOutOfBoundsException in multi-node cluster run fix: java.lang.ArrayIndexOutOfBoundsException in multi-node cluster run Sep 7, 2024
@dciborow
Copy link
Contributor Author

dciborow commented Sep 7, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.62%. Comparing base (f3953bc) to head (11bfba1).

❗ There is a different number of reports uploaded between BASE (f3953bc) and HEAD (11bfba1). Click for more details.

HEAD has 151 uploads less than BASE
Flag BASE (f3953bc) HEAD (11bfba1)
157 6
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2282       +/-   ##
===========================================
- Coverage   84.53%   19.62%   -64.91%     
===========================================
  Files         327      295       -32     
  Lines       16788    14157     -2631     
  Branches     1500     1287      -213     
===========================================
- Hits        14191     2778    -11413     
- Misses       2597    11379     +8782     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]java.lang.ArrayIndexOutOfBoundsException on multi-node cluster run
2 participants