maedhroz commented on a change in pull request #1180:
URL: https://github.com/apache/cassandra/pull/1180#discussion_r706338136
##########
File path: test/distributed/org/apache/cassandra/distributed/impl/Instance.java
##########
@@ -219,9 +222,14 @@ public IListen listen()
public SimpleQueryResult executeInternalWithResult(String query, Object...
args)
{
return sync(() -> {
+ ClientWarn.instance.captureWarnings();
+ CoordinatorTrackWarnings.init();
QueryHandler.Prepared prepared =
QueryProcessor.prepareInternal(query);
ResultMessage result =
prepared.statement.executeLocally(QueryProcessor.internalQueryState(),
QueryProcessor.makeInternalOptions(prepared.statement, args));
+ CoordinatorTrackWarnings.done();
Review comment:
Is it a problem if this doesn't fire if we get an exception from
`executeLocally()`?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]