Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5377

the error handling in serialize/deserializeExpression is insufficient, some test may pass in error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      TestSearchArgumentImpl output has stuff like this:

      Continuing ...
      java.lang.NoSuchMethodException: <unbound>=GenericUDFBridge.setUdfClass(Class);
      Continuing ...
      java.lang.NoSuchMethodException: <unbound>=GenericUDFBridge.setUdfClass(Class);
      

      XMLDecoder used in deserializeExpression by default would swallow some exceptions, such as the ones above; setExceptionListener can be used to receive those.
      When I set the listener to inline class that would rethrow them wrapped in RuntimeException, the test failed.
      Discovered in HIVE-4914.

      It may be a test-specific issue, or some general Expr serialization issue that may affect the real case.
      Also Kryo can now be used for serializing stuff.

      Attachments

        Issue Links

          Activity

            People

              ashutoshc Ashutosh Chauhan
              sershe Sergey Shelukhin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: