Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7608

SnappyCodec check for Hadoop native lib is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0, 0.24.0
    • 0.23.0, 0.24.0
    • io
    • None
    • Reviewed

    Description

      Currently SnappyCodec is doing:

        public static boolean isNativeSnappyLoaded(Configuration conf) {
          return LoadSnappy.isLoaded() && conf.getBoolean(
              CommonConfigurationKeys.IO_NATIVE_LIB_AVAILABLE_KEY,
              CommonConfigurationKeys.IO_NATIVE_LIB_AVAILABLE_DEFAULT);
        }
      

      But the conf check is wrong as it defaults to true. Instead it should use NativeCodeLoader.isNativeCodeLoaded()

      Attachments

        1. HADOOP-7608.patch
          4 kB
          Alejandro Abdelnur

        Activity

          People

            tucu00 Alejandro Abdelnur
            tucu00 Alejandro Abdelnur
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: