Skip to content

Commit

Permalink
Fix wrong tikv_raftstore_hibernated_peer_state metric (tikv#10420)
Browse files Browse the repository at this point in the history
* show hibernate_regions config

Signed-off-by: Yi Wu <[email protected]>

* fix hibernate region metrics

Signed-off-by: Yi Wu <[email protected]>

* fix merge

Signed-off-by: Yi Wu <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
yiwu-arbug and ti-chi-bot authored Jun 22, 2021
1 parent 6aafdae commit 4eb9ad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/raftstore/src/store/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub struct Config {

#[online_config(skip)]
pub future_poll_size: usize,
#[online_config(hidden)]
#[online_config(skip)]
pub hibernate_regions: bool,
#[doc(hidden)]
#[online_config(hidden)]
Expand Down
1 change: 1 addition & 0 deletions components/raftstore/src/store/fsm/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ where
let mut region = metapb::Region::default();
region.set_id(region_id);

HIBERNATED_PEER_STATE_GAUGE.awaken.inc();
let (tx, rx) = mpsc::loose_bounded(cfg.notify_capacity);
Ok((
tx,
Expand Down

0 comments on commit 4eb9ad4

Please sign in to comment.