11 Replies Latest reply on Sep 24, 2012 10:26 AM by Mark Addleman

    ResultSet.isLast() blocks with submitExecute under non-continuous mode?

    Mark Addleman Master

      I am executing a query using submitExecute(StatementCallback) under non-continuous mode.  In the onRow() method of the callback, I execute ResultSet.isLast().  The query is against an execution whose next() method initially throws DataNotAvailable.NO_POLLING.  Some time later, it calls ExecutionContext.dataAvailable().  After 255 rows reported through the callback's onRow(), ResultSet.isLast() hangs.

       

      I know that the entire result set is ultimately returned from the execution's next() and it returns null at the last call.

       

      Naively, I wouldn't expect ResultSet.isLast() to block in this case.  Am I missing something?