dcapwell commented on code in PR #3656:
URL: https://github.com/apache/cassandra/pull/3656#discussion_r1829910700


##########
src/java/org/apache/cassandra/service/accord/AccordService.java:
##########
@@ -568,6 +570,46 @@ public static List<ClusterMetadata> tcmLoadRange(long min, 
long max)
         return afterLoad;
     }
 
+    /**
+     * This method exists due to the fact that we define a retry policy for 
TCM to follow, and then TCM ignores it and does no retries...
+     */
+    private static List<ClusterMetadata> reconstruct(long min, long max)
+    {
+        Epoch start = Epoch.create(min);
+        Epoch end = Epoch.create(max);
+        Retry.Deadline retryPolicyThatGetsIgnored = 
Retry.Deadline.retryIndefinitely(DatabaseDescriptor.getCmsAwaitTimeout().to(NANOSECONDS),
+                                                                      
TCMMetrics.instance.fetchLogRetries);
+        Throwable lastError = null;
+        Backoff backoff = new Backoff.ExponentialBackoff(42, 200, 
SECONDS.toMillis(1), ThreadLocalRandom.current()::nextDouble);

Review Comment:
   > I should have pushed back on addition of second backoff in 
[CASSANDRA-19856](https://issues.apache.org/jira/browse/CASSANDRA-19856).
   
   you know the repair one was first right? It is in Apache Cassandra 5.0 and 
has been in prod for awhile.  I even spoke with Marcus before TCM merged on 
unification and he wanted to keep things separate.
   
   I don't disagree that it would be good to unify, I am reacting to using the 
"first" retry logic as being the "second" one =)



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

Reply via email to