Skip to content

Commit

Permalink
raftstore: disable PreVote (tikv#3270)
Browse files Browse the repository at this point in the history
  • Loading branch information
overvenus authored and huachaohuang committed Jun 30, 2018
1 parent 7ac771b commit 2b3f52d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See also [TiDB Changelog](https://github.com/pingcap/tidb/blob/master/CHANGELOG.
## [2.1.0-beta]
### Features
* Upgrade Rust to the `nightly-2018-06-14` version
* Enable `Raft PreVote` to avoid leader reelection generated when network recovers after network isolation
* Provide a `Raft PreVote` configuration to avoid leader reelection generated when network recovers after network isolation
* Add a metric to display the number of files and `ingest` related information in each layer of RocksDB
* Print `key` with too many versions when GC works
### Performance
Expand Down
2 changes: 1 addition & 1 deletion etc/config-template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
# sync-log = true

# minimizes disruption when a partitioned node rejoins the cluster by using a two phase election.
# prevote = true
# prevote = false

# set the path to raftdb directory, default value is data-dir/raft
# raftdb-path = ""
Expand Down
2 changes: 1 addition & 1 deletion src/raftstore/store/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Default for Config {
let split_size = ReadableSize::mb(coprocessor::config::SPLIT_SIZE_MB);
Config {
sync_log: true,
prevote: true,
prevote: false,
raftdb_path: String::new(),
capacity: ReadableSize(0),
raft_base_tick_interval: ReadableDuration::secs(1),
Expand Down

0 comments on commit 2b3f52d

Please sign in to comment.