pavlukhin commented on a change in pull request #6490: IGNITE-7285 Add default
query timeout
URL: https://github.com/apache/ignite/pull/6490#discussion_r327571113
##########
File path:
modules/core/src/main/java/org/apache/ignite/cache/query/SqlFieldsQuery.java
##########
@@ -66,7 +69,7 @@
private boolean collocated;
/** Query timeout in millis. */
- private int timeout;
+ private int timeout = DFLT_QUERY_TIMEOUT;
Review comment:
It seems that currently `-1` default timeout will cause an exception in
`ClientCacheSqlFieldsQueryRequest` constructor calling
`SqlFieldsQuery.setTimeout` method. There we can call `setTimeout`
conditionally if passed value is not negative.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services