[JAVA-5199] Mongo Encryption Library in a GraalVm Native application Created: 13/Oct/23  Updated: 02/Feb/24

Status: Backlog
Project: Java Driver
Component/s: Client Side Encryption
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Unknown
Reporter: Diogo Marques Assignee: Jeffrey Yemin
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Case:

 Description   

Summary

I am currently trying to use the Mongo Encryption Library in a GraalVm Native application but I can't get it to work.

I've learned that due to the fact LibMongoCrypt is a Native Library, GraalVm might not load it correctly because of it's AOT Compilation.
AOT Compilation aims to create a single executable containing every needed component and dependency and given the fact these native libraries are loaded at runtime, GraalVm may not be able to correctly add it and therefore won't work.

 

First and foremost, can you confirm this ? And if so, is this something that will be added in the near future ?

 

Thanks !!



 Comments   
Comment by Jeffrey Yemin [ 02/Feb/24 ]

Thanks, I'll let you know. We plan to pick this up again in the next few months.

Comment by Diogo Marques [ 02/Feb/24 ]

jeff.yemin@mongodb.com Sorry I didn't get back to you but I was not able to pick this issue up again (since we kinda put GraalVM on hold) ... I see that you moved it to investigating. If there's something I can do to help you, just let me know, I'll be pleased to help you out

Thanks !!!

Comment by PM Bot [ 12/Dec/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to reopen this ticket if you're still experiencing the issue, and add a comment if you're able to provide more information.

Comment by Jeffrey Yemin [ 04/Dec/23 ]

Hi dmiguel.am@gmail.com, we reopened the issue but if we don't hear back from you soon it's going to auto-close due to inactivity. But we can always reopen again if necessary.

Comment by Diogo Marques [ 07/Nov/23 ]

Hey jeff.yemin@mongodb.com,

 

Sorry for taking so long but something else came in the way and I still didn't have time to give it a try, I am planning on doing so in the next week or so. Once I have updates, I'll keep you posted. 

Also, I tried to re-open the ticket, but wasn't able to do so. Is it possible to re-open it ?

 

Thanks !

Comment by PM Bot [ 07/Nov/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to reopen this ticket if you're still experiencing the issue, and add a comment if you're able to provide more information.

Comment by PM Bot [ 30/Oct/23 ]

Hi dmiguel.am@gmail.com! JAVA-5199 is awaiting your response.

If this is still an issue for you, please open Jira to review the latest status and provide your feedback. Thanks!

Comment by Jeffrey Yemin [ 20/Oct/23 ]

Hi dmiguel.am@gmail.com GraalVM does support JNI. See https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/JNI/. That said, we don't currently test the driver with GraalVM at all, though it's on our roadmap.

Have you tried it and confirmed that it doesn't work?

Comment by PM Bot [ 13/Oct/23 ]

Hi dmiguel.am@gmail.com, thank you for reporting this issue! The team will look into it and get back to you soon.

Generated at Thu Feb 08 09:03:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.