dcapwell commented on code in PR #2948:
URL: https://github.com/apache/cassandra/pull/2948#discussion_r1411377628
##########
src/java/org/apache/cassandra/repair/AccordRepairJob.java:
##########
@@ -19,36 +19,41 @@
package org.apache.cassandra.repair;
import java.math.BigInteger;
-import java.util.List;
import javax.annotation.Nullable;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import accord.api.BarrierType;
import accord.api.RoutingKey;
import accord.primitives.Ranges;
import accord.primitives.Seekables;
import org.apache.cassandra.dht.AccordSplitter;
import org.apache.cassandra.dht.IPartitioner;
-import org.apache.cassandra.dht.Range;
-import org.apache.cassandra.dht.Token;
import org.apache.cassandra.service.accord.AccordService;
+import org.apache.cassandra.service.accord.AccordTopologyUtils;
import org.apache.cassandra.service.accord.TokenRange;
-import org.apache.cassandra.service.accord.api.AccordRoutingKey.TokenKey;
import
org.apache.cassandra.service.consensus.migration.ConsensusTableMigrationState.ConsensusMigrationRepairResult;
import org.apache.cassandra.tcm.ClusterMetadata;
import org.apache.cassandra.tcm.Epoch;
import static com.google.common.base.Preconditions.checkState;
import static java.util.Collections.emptyList;
-import static org.apache.cassandra.utils.Clock.Global.nanoTime;
+import static
org.apache.cassandra.config.CassandraRelevantProperties.ACCORD_REPAIR_RANGE_STEP_UPDATE_INTERVAL;
/*
* Accord repair consists of creating a barrier transaction for all the ranges
which ensure that all Accord transactions
* before the Epoch and point in time at which the repair started have their
side effects visible to Paxos and regular quorum reads.
*/
public class AccordRepairJob extends AbstractRepairJob
{
+ private static final Logger logger =
LoggerFactory.getLogger(AccordRepairJob.class);
+
public static final BigInteger TWO = BigInteger.valueOf(2);
+ // Number of barriers to run before doubling the range step size
+ static int RANGE_STEP_UPDATE_INTERVAL = 100;
Review Comment:
this is dead code now
--
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]