exceptionfactory commented on code in PR #9148:
URL: https://github.com/apache/nifi/pull/9148#discussion_r1704142677


##########
nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/main/java/org/apache/nifi/processors/cassandra/QueryCassandra.java:
##########
@@ -277,7 +279,9 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession session
             final ResultSet resultSet;
 
             if (queryTimeout > 0) {
-                resultSet = connectionSession.execute(selectQuery, 
queryTimeout, TimeUnit.MILLISECONDS);
+                Statement statement = new SimpleStatement(selectQuery);
+                statement.setReadTimeoutMillis((int) queryTimeout);

Review Comment:
   This cast to `(int)` is not necessary.
   ```suggestion
                   statement.setReadTimeoutMillis(queryTimeout);
   ```



-- 
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]

Reply via email to