maedhroz commented on a change in pull request #1160:
URL: https://github.com/apache/cassandra/pull/1160#discussion_r693047174
##########
File path: src/java/org/apache/cassandra/service/reads/AbstractReadExecutor.java
##########
@@ -155,7 +156,11 @@ private void makeRequests(ReadCommand readCommand,
Iterable<Replica> replicas)
if (hasLocalEndpoint)
{
logger.trace("reading {} locally", readCommand.isDigestQuery() ?
"digest" : "data");
- Stage.READ.maybeExecuteImmediately(new LocalReadRunnable(command,
handler));
+
+ if (TEST_FORCE_ASYNC_LOCAL_READS)
+ new Thread(new LocalReadRunnable(readCommand,
handler)).start();
Review comment:
Initially I tried to just have this hit `Stage.READ.execute()`, but the
initial read and the read on read-repair seemed to both try to use the same
ReadStage thread :/
--
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]