Hadoop Common
  1. Hadoop Common
  2. HADOOP-7608

SnappyCodec check for Hadoop native lib is wrong

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 0.24.0
    • Fix Version/s: 0.23.0, 0.24.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      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()

      1. HADOOP-7608.patch
        4 kB
        Alejandro Abdelnur

        Activity

          People

          • Assignee:
            Alejandro Abdelnur
            Reporter:
            Alejandro Abdelnur
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development