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

OpensslCipher initialization error should log a WARN message

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      We spent months troubleshooting a RangerKMS performance problem, only to realize that the openssl library wasn't even loaded properly.

      The failure to load openssl lib is currently logged as a debug message during initialization. We really should upgrade it to at least INFO/WARN.

      static {
          String loadingFailure = null;
          try {
            if (!NativeCodeLoader.buildSupportsOpenssl()) {
              PerformanceAdvisory.LOG.debug("Build does not support openssl");
              loadingFailure = "build does not support openssl.";
            } else {
              initIDs();
            }
          } catch (Throwable t) {
            loadingFailure = t.getMessage();
            LOG.debug("Failed to load OpenSSL Cipher.", t);
          } finally {
            loadingFailureReason = loadingFailure;
          }
        }
      

      Attachments

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m