aweisberg commented on code in PR #101:
URL: https://github.com/apache/cassandra-accord/pull/101#discussion_r1663209606
##########
accord-core/src/main/java/accord/topology/TopologyManager.java:
##########
@@ -70,7 +76,18 @@
*/
public class TopologyManager
{
- private static final AsyncResult<Void> SUCCESS =
AsyncResults.success(null);
+ private static final FutureEpoch SUCCESS;
+
+ static
+ {
+ SUCCESS = new FutureEpoch(Long.MAX_VALUE);
+ SUCCESS.future.trySuccess(null);
+ }
+
+ // How long before we start notifying waiters on an epoch of timeout,
+ private static final long EPOCH_INITIAL_TIMEOUT_MILLIS = 10_000;
+ // How often we check for timeout, and once an epoch has timed out, how
often we timeout new waiters
+ private static final long WATCHDOG_INTERVAL_MILLIS = 2_000;
Review Comment:
Will move it to `LocalConfig`
--
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]