# the rule id is the same with related issue
# you can visite the issue via https://github.com/pingcap-inc/compute-engine/issues/{id}

# https://github.com/pingcap-inc/compute-engine/issues/50
- id: 50
  name: writing conflict in optimistic transactions
  component: tikv
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains_many: write conflict
  advices: log_diag_50

# https://github.com/pingcap-inc/compute-engine/issues/111
- id: 111
  name: GC life time is shorter than transaction duration
  component: tidb
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains: GC life time is shorter than transaction duration
  advices: log_diag_111
  
# https://github.com/pingcap-inc/compute-engine/issues/112
- id: 112
  name: transaction not commit for a long time
  component: tidb
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains: txn takes too much time
  advices: log_diag_112

# https://github.com/pingcap-inc/compute-engine/issues/113
- id: 113
  name: data index may be inconsistent
  component: tidb
  level: warning
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: inconsistent index
  advices: log_diag_113

# https://github.com/pingcap-inc/compute-engine/issues/114
- id: 114
  name: writing conflict in optimistic transactions
  component: tikv
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains_many: "[kv:9007]Write conflict"
  advices: log_diag_114

# https://github.com/pingcap-inc/compute-engine/issues/115
- id: 115
  name: RocksDB write stall
  component: tikv
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains: write stall
  advices: log_diag_115
  
# https://github.com/pingcap-inc/compute-engine/issues/116
- id: 116
  name: TiKV can't bootstrap since region error 
  component: tikv
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: unexpected raft log index
  advices: log_diag_116
  
# https://github.com/pingcap-inc/compute-engine/issues/116
- id: 116
  name: TiKV can't bootstrap since region error 
  component: tikv
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - regex: entries.* is unavailable from storage
  advices: log_diag_116
  
# https://github.com/pingcap-inc/compute-engine/issues/118
- id: 118
  name: tasks pile up in the scheduler
  component: tikv
  level: info
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains: scheduler too busy
  advices: log_diag_118

# https://github.com/pingcap-inc/compute-engine/issues/119
- id: 119
  name: Pump has insufficient disk space
  component: pump
  level: warning
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: no space left on device
  advices: log_diag_119

# https://github.com/pingcap-inc/compute-engine/issues/120
- id: 120
  name: Pump fail to notify all living drainer
  component: pump
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: fail to notify all living drainer
  advices: log_diag_120

# https://github.com/pingcap-inc/compute-engine/issues/121
- id: 121
  name: DM sync error with incorrect utf8 value
  component: dm
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "Error 1366: incorrect utf8 value"
  advices: log_diag_121

# https://github.com/pingcap-inc/compute-engine/issues/122
- id: 122
  name: Lightning checksum error
  component: tidb-lightning
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "checksum failed: checksum mismatched remote vs local"
  advices: log_diag_122

# https://github.com/pingcap-inc/compute-engine/issues/123
- id: 123
  name: opened engine files exceed the limit of tikv-importer
  component: tidb-lightning
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: ResourceTemporarilyUnavailable
  - contains: Too many open engines
  advices: log_diag_123

# https://github.com/pingcap-inc/compute-engine/issues/124
- id: 124
  name: Lightning can't guess encoding for input file
  component: tidb-lightning
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: cannot guess encoding for input file, please convert to UTF-8 manually
  advices: log_diag_124
  
# https://github.com/pingcap-inc/compute-engine/issues/125
- id: 125
  name: timestamp error on tidb lightning
  component: tidb-lightning
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "[sql2kv] sql encode error"
  - contains: "invalid time format"
  advices: log_diag_125

# https://github.com/pingcap-inc/compute-engine/issues/126
- id: 126
  name: metadata is written too frequently for TiCDC
  component: cdc
  level: warning
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "etcdserver: mvcc: database space exceeded"
  advices: log_diag_126

# https://github.com/pingcap-inc/compute-engine/issues/127
- id: 127
  name: cdc sync interrupted since buffer limit
  component: cdc
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "[CDC:ErrBufferReachLimit]"
  advices: log_diag_127
  
# https://github.com/pingcap-inc/compute-engine/issues/128
- id: 128
  name: Canal requires old value to be enabled
  component: cdc
  level: error
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "[CDC:ErrKafkaInvalidConfig]Canal requires old value to be enabled"
  advices: log_diag_128
  
# https://github.com/pingcap-inc/compute-engine/issues/129
- id: 129
  name: create changefeed failed
  component: cdc
  level: warning
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "[tikv:9006]GC life time is shorter than transaction duration"
  advices: log_diag_129

# https://github.com/pingcap-inc/compute-engine/issues/130
- id: 130
  name: requests to TiKV coprocessor queued more than 60s
  component: tidb
  level: warning
  type: Non-End-to-End
  category: 
  - perf
  conditions:
  - contains: request outdated
  advices: log_diag_130
  
# https://github.com/pingcap-inc/compute-engine/issues/131
- id: 131
  name: TiDB send request timeout
  component: tidb
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains: "switch region peer to next due to send request fail" 
  - contains: "context deadline exceeded"
  - contians: "send request is cancelled"
  advices: log_diag_131
  
# https://github.com/pingcap-inc/compute-engine/issues/132
- id: 132
  name: TiKV response timeout
  component: tidb
  level: warning
  type: Non-End-to-End
  category: 
  - perf
  conditions:
  - contains: "switch region peer to next due to send request fail"
  - contains: "context deadline exceeded"
  - contains: "wait response is cancelled"
  advices: log_diag_132
  
# https://github.com/pingcap-inc/compute-engine/issues/133
- id: 133
  name: TiKV peer is not leader
  component: tikv
  level: warning
  type: End-to-End
  category: 
  - perf
  conditions:
  - contains_many: "peer is not leader"
  advices: log_diag_133
  
# https://github.com/pingcap-inc/compute-engine/issues/134
- id: 134
  name: DM sync abnormal
  component: dm
  level: warning
  type: End-to-End
  category: 
  - debug
  conditions:
  - contains: "invalid connection"
  advices: log_diag_134
  
# https://github.com/pingcap-inc/compute-engine/issues/135
- id: 135
  name: DM sync interrupted
  component: dm
  level: warning
  type: Non-End-to-End
  category: 
  - debug
  conditions:
  - contains: "ERROR 1236 (HY000) The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires."
  advices: log_diag_135