Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14321

Fix -Xcheck:jni issues in libhdfs, run ctest with -Xcheck:jni enabled

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: hdfs-client, libhdfs, native
    • Labels:
      None

      Description

      The JVM exposes an option called -Xcheck:jni which runs various checks against JNI usage by applications. Further explanation of this JVM option can be found in: https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts002.html and https://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.vm.80.doc/docs/jni_debug.html. When run with this option, the JVM will print out any warnings or errors it encounters with the JNI.

      We should run the libhdfs tests with -Xcheck:jni (can be added to LIBHDFS_OPTS) and fix any warnings / errors. We should add this option to our ctest runs as well to ensure no regressions are introduced to libhdfs.

        Attachments

        1. HDFS-14321.001.patch
          2 kB
          Sahil Takiar

          Activity

            People

            • Assignee:
              stakiar Sahil Takiar
              Reporter:
              stakiar Sahil Takiar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: