Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-8796

[hive] Remove in place handle guid base64 conversion

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.5.0
    • Component/s: con.hive
    • Labels:
      None

      Description

      When calling any of the methods on hiveserver2, we call _get_handle. This method converts a base64 encoded string to binary in place without any checks. Multiple calls to the base64 conversion creates garbage. This is a problem for the caller who wants to call multiple methods of as the second one will fail

      e.g.

      a snippet has a handle with a base64 guid in snippet['result']['handle']['guid']

      hiverserver2.check_status(notebook, snippet) # snippet['result']['handle']['guid'] is now in binary format.

      hiverserver2.get_log(notebook, snippet) # base64 conversion fails because the guid is already in binary format.

       

      The fix is to not do in place conversion.

       

       

        Attachments

          Activity

            People

            • Assignee:
              jgauthier Jean Francois Desjeans Gauthier
              Reporter:
              jgauthier Jean Francois Desjeans Gauthier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: