Uploaded image for project: 'Livy (READ-ONLY)'
  1. Livy (READ-ONLY)
  2. LIVY-202

Statement output is null even though state is "available"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.3
    • Component/s: RSC, Server
    • Labels:

      Description

      During some concurrency testing with an interactive session, I got the following response back:

      {{

      {"id":0,"state":"available","output":null}

      }}

      The issue is related to the following code in InteractiveSessionServlet.scala, which assumes the statement result will be available within 100 milliseconds:

      InteractiveSessionServlet.scala
        val output = try {
          Await.result(statement.output(), Duration(100, TimeUnit.MILLISECONDS))
        } catch {
          case _: TimeoutException => null
        }
      

      Workaround is simple: retry the statement REST call until the output is not null.

        Attachments

          Activity

            People

            • Assignee:
              tc0312 Alex Man
              Reporter:
              paulw Paul Wilkinson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: