oracle / nosql-java-sdk

SDK for Java for the Oracle NoSQL Database
https://www.oracle.com/database/nosql/
Universal Permissive License v1.0
24 stars 24 forks source link

Allow retrying a timed-out query if it does not do writes #30

Closed connelly38 closed 2 years ago

connelly38 commented 2 years ago

The current query driver logic disables retrying a query request if it gets a non-retryable error. But a TimeoutException (or RequestTimeoutException) should allow a retry if the query does not do writes. This change fixes this specific case. Retries will be allowed only if the query already is prepared and the prepare statement does not do writes.