[[rule]]
id = 0x5001
symptom = "Region 无法分裂"
kb = [ "https://kb.pingcap.com/post/solutions/77" ]
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3632" ]

  [rule.patterns]
  component = "tikv"
  level = "error"
  message = [ "failed to handle split req", "no valid key found for split" ]

[[rule]]
id = 0x5002
symptom = "更新 BindInfo 失败"
kb = [ "https://kb.pingcap.com/post/solutions/171" ]

  [rule.patterns]
  component = "tidb"
  level = "fatal"
  message = [ "updateBindInfo error" ]

[[rule]]
id = 0x5003
symptom = "RocksDB 的 cache key 冲突"
kb = [ "https://kb.pingcap.com/post/solutions/149" ]

  [rule.patterns]
  component = "tikv"
  level = "fatal"
  message = [ "rocksdb background error", "L3 have overlapping ranges" ]

[[rule]]
id = 0x5004
symptom = "server.max-grpc-send-msg-len 参数过小"
kb = [ "https://kb.pingcap.com/post/solutions/130" ]

  [rule.patterns]
  component = "tikv"
  message = [ "RPC batch_raft fail", "Sent message larger than max" ]

[[rule]]
id = 0x5005
symptom = "TiDB index out of range"
kb = [ "https://kb.pingcap.com/post/solutions/11" ]

  [rule.patterns]
  component = "tidb"
  message = [ "runtime error: index out of range", "github.com/pingcap/tidb/statistics", "QueryFeedback" ]

[[rule]]
id = 0x5006
symptom = "TiKV protobuf 异常"
kb = [ "https://kb.pingcap.com/post/solutions/28" ]

  [rule.patterns]
  component = "tikv"
  level = "fatal"
  message = [ "refresh_buffer must not be called on CodedOutputStream create from slice" ]

[[rule]]
id = 0x5007
symptom = "TiFlash received unmatched data"
kb = [ "https://kb.pingcap.com/post/solutions/341" ]
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3657" ]

  [rule.patterns]
  component = "tiflash"
  level = "error"
  message = [ "can not found in default cf for key" ]

[[rule]]
id = 0x5008
symptom = "TiDB connection running loop panic"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3758", "https://internal.pingcap.net/jira/browse/ONCALL-3987" ]

  [rule.patterns]
  component = "tidb"
  level = "error"
  message = [ "connection running loop panic" ]

[[rule]]
id = 0x5009
symptom = "TiDB get timestamp too slow"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3727" ]

  [rule.patterns]
  component = "tidb"
  level = "warn"
  message = [ "get timestamp too slow" ]

[[rule]]
id = 0x500A
symptom = "TiFlash label 设置错误"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3715" ]

  [rule.patterns]
  component = "tiflash"
  level = "error"
  message = [ "request failed", "label configuration is incorrect, need to specify the key" ]

[[rule]]
id = 0x500B
symptom = "store does not have enough disk space"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3811" ]

  [rule.patterns]
  component = "pd"
  level = "warn"
  message = [ "store does not have enough disk space" ]


[[rule]]
id = 0x500C
symptom = "TiDB save stats to storage failed"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3787" ]

  [rule.patterns]
  component = "tidb"
  level = "error"
  message = [ "save stats to storage failed", "Data too long for column" ]

[[rule]]
id = 0x500D
symptom = "写 Binlog 失败：数据过大"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3646" ]

  [rule.patterns]
  component = "tidb"
  level = "error"
  message = [ "write binlog failed", "message too large" ]

[[rule]]
id = 0x500E
symptom = "TiKV 中存在非法的 key"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3632" ]

  [rule.patterns]
  component = "tikv"
  level = "warn"
  message = [ "invalid key, skip" ]

[[rule]]
id = 0x500F
symptom = "Entries 不可用"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-3853" ]

  [rule.patterns]
  component = "tikv"
  level = "fatal"
  message = [ "entries", "is unavailable from storage" ]

[[rule]]
id = 0x5011
symptom = "TiDB dispatch command failed"
jira = [ "https://internal.pingcap.net/jira/browse/ONCALL-4058" ]

  [rule.patterns]
  component = "tidb"
  message = [ "command dispatched failed" ]
