Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1221

Avro 1.7.2 IPC REALM test fails with IBM Javas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.4
    • java
    • None
    • 64 bits
      Red Hat Enterprise Linux Server release 6.3 (Santiago)
      IBM Java 1.6.0 (SR11) or IBM Java 1.7.0
      Maven 3.0.3

    Description

      I downloaded Avro stable version 1.7.2 and could build it successfully. But it fails when I try to run the tests with IBM Java. The tests build and compile flawlessly with Sun Java.

      The failure is in IPC, in the test file: avro-src-1.7.2/lang/java/ipc/src/test/java/org/apache/avro/ipc/TestSaslDigestMd5.java

      It occurs when the REALM is set:
      DIGEST_MD5_PROPS.put("com.sun.security.sasl.digest.realm", REALM);

      Maven return:

      """

      Results :

      Failed tests: testUndeclaredError(org.apache.avro.ipc.TestSaslDigestMd5)

      Tests in error:
      testAnonymousClient(org.apache.avro.ipc.TestSaslDigestMd5): Fail: javax.security.sasl.SaslException: DIGEST-MD5: digest response format violation. Nonexistent realm: avro-test-realm
      testHello(org.apache.avro.ipc.TestSaslDigestMd5)
      testEcho(org.apache.avro.ipc.TestSaslDigestMd5)
      testEchoBytes(org.apache.avro.ipc.TestSaslDigestMd5)
      testError(org.apache.avro.ipc.TestSaslDigestMd5)
      org.apache.avro.ipc.TestSaslDigestMd5

      Tests run: 287, Failures: 1, Errors: 6, Skipped: 4

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Apache Avro Java .................................. SUCCESS [3.554s]
      [INFO] Apache Avro ....................................... SUCCESS [38.981s]
      [INFO] Apache Avro Compiler .............................. SUCCESS [3.408s]
      [INFO] Apache Avro Maven Plugin .......................... SUCCESS [3.420s]
      [INFO] Apache Avro IPC ................................... FAILURE [1:46.459s]
      [INFO] Trevni Java ....................................... SKIPPED
      [INFO] Trevni Java Core .................................. SKIPPED

      """

      I were able to fix this changing "sun" by "ibm".

      Attachments

        1. avro-1.7.2-IPC_test_fix_IBM_java.patch
          0.9 kB
          Rodrigo Trujillo

        Activity

          People

            rodrigotrujillo Rodrigo Trujillo
            rodrigotrujillo Rodrigo Trujillo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: