Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5381

Add the reachability metadata from graalvm-native-image-app to driver JARs

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: GraalVM
    • None
    • Java Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The reachability metadata in graalvm-native-image-app/src/main/resources/META-INF/native-image was collected on my local computer (see graalvm-native-image-app/readme.md). I also manually added there entries for shared libraries for OSes/ISAs different from mine. We should (manually, as far as I understand) put some of that metadata in the relevant driver JARs (for example, by adding files to driver-core/src/main/resources/META-INF/native-image). Some entries, like the logback-test.xml resource, should be ignored and left in graalvm-native-image-app/src/main/resources/META-INF/native-image; everything that goes in JARs must be removed from graalvm-native-image-app/src/main/resources/META-INF/native-image.

      When/if building and running graalvm-native-image-app on Evergreen fails, we will know that it's likely time to update the metadata in JARs.

            Assignee:
            Unassigned Unassigned
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: