[config](checksum) Disable consistency checker by default (#9699)
Disable by default because current checksum logic has some bugs. And it will also bring some overhead.
This commit is contained in:
@ -856,12 +856,15 @@ public class Config extends ConfigBase {
|
||||
// Configurations for consistency check
|
||||
/**
|
||||
* Consistency checker will run from *consistency_check_start_time* to *consistency_check_end_time*.
|
||||
* Default is from 23:00 to 04:00
|
||||
* If start time == end time, the checker will stop scheduling.
|
||||
* And default is disabled.
|
||||
* TODO(cmy): Disable by default because current checksum logic has some bugs.
|
||||
* And it will also bring some overhead.
|
||||
*/
|
||||
@ConfField(mutable = true, masterOnly = true)
|
||||
public static String consistency_check_start_time = "23";
|
||||
@ConfField(mutable = true, masterOnly = true)
|
||||
public static String consistency_check_end_time = "4";
|
||||
public static String consistency_check_end_time = "23";
|
||||
/**
|
||||
* Default timeout of a single consistency check task. Set long enough to fit your tablet size.
|
||||
*/
|
||||
|
||||
@ -98,6 +98,7 @@ import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Multiset;
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
import org.apache.commons.collections.map.HashedMap;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@ -640,7 +641,8 @@ public class Coordinator {
|
||||
switch (code) {
|
||||
case TIMEOUT:
|
||||
throw new RpcException(pair.first.backend.getHost(), "send fragment timeout. backend id: "
|
||||
+ pair.first.backend.getId());
|
||||
+ pair.first.backend.getId() + " fragment: " +
|
||||
DebugUtil.printId(pair.first.rpcParams.params.fragment_instance_id));
|
||||
case THRIFT_RPC_ERROR:
|
||||
SimpleScheduler.addToBlacklist(pair.first.backend.getId(), errMsg);
|
||||
throw new RpcException(pair.first.backend.getHost(), "rpc failed");
|
||||
|
||||
Reference in New Issue
Block a user