rezataroosheh commented on code in PR #13745:
URL: https://github.com/apache/ignite/pull/13745#discussion_r4493978832
##########
modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/LongRunningQueryTest.java:
##########
@@ -546,6 +572,29 @@ private void checkInitiatorId(ListeningTestLogger log,
String type, String sql,
assertTrue(lsnr.check());
}
+ /** */
+ private void checkParameters(
+ ListeningTestLogger log,
+ String type,
+ String sql,
+ boolean includeSensitive
+ ) throws InterruptedException {
+ int arg = LONG_QUERY_WARNING_TIMEOUT + LONG_QUERY_WARNING_TIMEOUT / 2;
+
+ LogListener paramsLsnr =
LogListener.matches(LONG_QUERY_FINISHED_MSG).andMatches("type=" + type)
+ .andMatches("params=[" + arg + "]").build();
+
+ LogListener finishedLsnr =
LogListener.matches(LONG_QUERY_FINISHED_MSG).andMatches("type=" + type).build();
+
+ log.registerListener(paramsLsnr);
+ log.registerListener(finishedLsnr);
+
+ ignite.cache("test").query(new
SqlFieldsQuery(sql).setArgs(arg)).getAll();
Review Comment:
Done in 6d5a333360, thanks.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]