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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: