aweisberg commented on code in PR #3490:
URL: https://github.com/apache/cassandra/pull/3490#discussion_r1759234861
##########
src/java/org/apache/cassandra/service/accord/api/AccordAgent.java:
##########
@@ -182,29 +185,37 @@ public long attemptCoordinationDelay(Node node,
SafeCommandStore safeStore, TxnI
RoutingKey homeKey = command.route().homeKey();
Shard shard = node.topology().forEpochIfKnown(homeKey,
command.txnId().epoch());
+ // TODO (expected): make this a configurable calculation on normal
request latencies (like ContentionStrategy)
long oneSecond = SECONDS.toMicros(1L);
+ long startTime = mostRecentAttempt.hlc() +
DatabaseDescriptor.getAccord().recover_delay.to(MICROSECONDS)
Review Comment:
I don't understand this, the `hlc` + the recovery delayConfig + `retryCount`
== 0 then return 0 otherwise a random number?
--
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]