tikv/tikv

"check snapshot range" log needs be optimized

Aberta

#5.122 aberto em 23 de jul. de 2019

 (4 comentários) (0 reação) (0 responsável)Rust (2.189 forks)batch import
difficulty/easyhelp wantedsig/raft

Métricas do repositório

Stars
 (15.922 estrelas)
Métricas de merge de PR
 (Mesclagem média 28d 9h) (68 fundiu PRs em 30d)

Description

The picture below is how "check snapshot range" looks like for now:

image

https://github.com/tikv/tikv/blob/3f2fce9e53649c1a06c452b25fabab82ddd8a74a/src/raftstore/store/fsm/peer.rs#L2078-L2084

At line 2082, it prints the entire region_ranges which contains range info in a TiKV instance, it is too verbose and maybe cause a performance regression since debug logs are always evaluated.

Guia do colaborador