Class UnexpectedPagingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.nosqlbench.adapter.cqld4.exceptions.UnexpectedPagingException
All Implemented Interfaces:
Serializable

public class UnexpectedPagingException extends RuntimeException

This is not a core exception. It was added to the CQL activity type driver for nosqlbench specifically to catch the following unexpected condition: Paging would be needed to read all the results from a read query, but the user is not expecting to intentionally check and iterate the result sets for paging.

This should only be thrown if a result set would need paging, but configuration options specific that it should not expect to. Rather than assume paging is completely expected or unexpected, we simply assume that only 1 page is allowed, being the first page, or what is thought of as "not paging".

If this error is thrown, and paging is expected, then the user can adjust fetchsize or maxpages in order to open up paging to the degree that is allowable or expected.

See Also:
  • Constructor Details

    • UnexpectedPagingException

      public UnexpectedPagingException(com.datastax.oss.driver.api.core.cql.AsyncResultSet resultSet, String queryString, int fetchedPages, int maxpages, int fetchSize)
  • Method Details

    • getResultSet

      public com.datastax.oss.driver.api.core.cql.AsyncResultSet getResultSet()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable