Uploaded image for project: 'JDBC'
  1. JDBC
  2. JDBC-54

Executing a WU in "Compiled" state can result in Attempting to execute a workunit that hasn't been compiled

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • None
    • Driver
    • None
    • JDBC Driver test code attempts to prepare a query (compiles a WU), then execute that prepared query with various input parameters (execute the compiled WU) with input params bound to it

    Description

      preparedSQL = hpccConnection.prepareSQL(sqlQuery);

      if (preparedSQL == null || preparedSQL.getWuid().isEmpty())
      throw new SQLException(" could not be prepared.");

      Thread.sleep(5000); //give it a chance to compile

      //if (Workunit.translateWUState(preparedSQL.getState()) != WUState.COMPILED) for some reason, we can get a:
      //"Attempting to execute a workunit that hasn't been compiled" even if we get a "compiled" state!
      ExecutePreparedSQLResponse executePreparedSQL = hpccConnection.executePreparedSQL(preparedSQL.getWuid(), variables);

      Attachments

        Activity

          People

            Michael-Gardner Michael Gardner
            rpastrana Rodrigo Pastrana
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: