Distributed transactional key-value database, originally created to complement TiDB
This report presents the forensic synthetic code analysis of tikv/tikv, a Rust project with 16,758 GitHub stars. SynthScan v2.0 examined 710,151 lines of code across 1473 source files, recording 937 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 2.3 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 937 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 221 | # Remove this when a new version is release. We need to solve rust-lang/cmake-rs#143. | COMMENT |
| LOW | deny.toml | 61 | # See https://github.com/sfackler/rust-openssl/pull/2266 | COMMENT |
| LOW | deny.toml | 81 | # also upgrade the OpenSSL to v3.x which causes performance degradation. | COMMENT |
| LOW | deny.toml | 101 | "RUSTSEC-2026-0097", | COMMENT |
| LOW | cmd/tikv-ctl/src/cmd.rs | 421 | }, | COMMENT |
| LOW | cmd/tikv-ctl/src/cmd.rs | 541 | /// output file path | COMMENT |
| LOW | cmd/tikv-ctl/src/cmd.rs | 581 | data_dir: String, | COMMENT |
| LOW | cmd/tikv-ctl/src/cmd.rs | 601 | #[clap(long, default_value = "symlink")] | COMMENT |
| LOW | cmd/tikv-ctl/src/cmd.rs | 821 | )] | COMMENT |
| LOW | tests/failpoints/mod.rs | 1 | // Copyright 2017 TiKV Project Authors. Licensed under Apache-2.0. | COMMENT |
| LOW | tests/failpoints/cases/test_snap.rs | 1181 | // k2 (split point) | COMMENT |
| LOW | tests/failpoints/cases/test_hibernate.rs | 361 | rx.recv_timeout(Duration::from_secs(1)).unwrap(), | COMMENT |
| LOW | tests/failpoints/cases/test_conf_change.rs | 201 | cluster.must_put(key, value); | COMMENT |
| LOW | tests/failpoints/cases/test_replica_read.rs | 341 | router.send_raft_message(read_index_msg).unwrap(); | COMMENT |
| LOW | tests/failpoints/cases/test_disk_snap_br.rs | 1 | // Copyright 2023 TiKV Project Authors. Licensed under Apache-2.0. | COMMENT |
| LOW | tests/failpoints/cases/test_engine.rs | 61 | // note: before rocksdb/pull/347, lock is called before on_memtable_sealed. | COMMENT |
| LOW | tests/failpoints/cases/test_split_region.rs | 581 | // [k2, +∞) │ │ │ │ │ │ | COMMENT |
| LOW | tests/failpoints/cases/test_split_region.rs | 1441 | fail::remove("on_apply_batch_split"); | COMMENT |
| LOW | tests/failpoints/cases/test_early_apply.rs | 101 | /// between restarting. However, this guarantee can be broken by | COMMENT |
| LOW | tests/failpoints/cases/test_sst_ingest.rs | 21 | use test_raftstore::*; | COMMENT |
| LOW | tests/failpoints/cases/test_merge.rs | 961 | COMMENT | |
| LOW | tests/failpoints/cases/test_merge.rs | 1061 | } | COMMENT |
| LOW | tests/failpoints/cases/test_stale_read.rs | 261 | assert_ne!(leader1.get_store_id(), leader1000.get_store_id()); | COMMENT |
| LOW | tests/failpoints/cases/test_stale_read.rs | 281 | // Region 1000 F L F | COMMENT |
| LOW | tests/integrations/raftstore/test_snap.rs | 281 | must_get_equal(&cluster.get_engine(3), b"k11", b"v11"); | COMMENT |
| LOW | tests/integrations/raftstore/test_stale_peer.rs | 21 | /// - Peer B gets down. And then A adds D, E, F into the cluster. | COMMENT |
| LOW | tests/integrations/raftstore/test_stale_peer.rs | 101 | let mut cluster = new_server_cluster(0, count); | COMMENT |
| LOW | tests/integrations/raftstore/test_unsafe_recovery.rs | 1381 | assert_eq!(cluster.must_get(b"k4"), Some(b"v4".to_vec())); | COMMENT |
| LOW | tests/integrations/raftstore/test_lease_read.rs | 21 | // A helper function for testing the lease reads and lease renewing. | COMMENT |
| LOW | tests/integrations/raftstore/test_lease_read.rs | 661 | /// 1. Add heartbeat msg filter. | COMMENT |
| LOW | tests/integrations/raftstore/test_bootstrap.rs | 281 | let msg = PeerMsg::FlushBeforeClose { tx }; | COMMENT |
| LOW | tests/integrations/storage/test_titan.rs | 301 | // L5: [delete(a_7)] | COMMENT |
| LOW | tests/integrations/storage/test_storage.rs | 921 | COMMENT | |
| LOW | etc/config-template.toml | 1 | ## TiKV config template | COMMENT |
| LOW | etc/config-template.toml | 21 | ## Use abort when TiKV panic. By default TiKV will use _exit() on panic, in that case | COMMENT |
| LOW | etc/config-template.toml | 41 | ## this threshold, it can squeeze some internal components (e.g. evicting cached Raft entries) | COMMENT |
| LOW | etc/config-template.toml | 61 | # background-read-bandwidth = "0B" | COMMENT |
| LOW | etc/config-template.toml | 81 | ## max log file keep days | COMMENT |
| LOW | etc/config-template.toml | 101 | COMMENT | |
| LOW | etc/config-template.toml | 121 | ## The following configurations only take effect when `use-unified-pool` is false. | COMMENT |
| LOW | etc/config-template.toml | 141 | ## Size of the stack for each thread in the thread pool. | COMMENT |
| LOW | etc/config-template.toml | 161 | # max-tasks-per-worker-normal = 2000 | COMMENT |
| LOW | etc/config-template.toml | 181 | ## Listening address. | COMMENT |
| LOW | etc/config-template.toml | 201 | ## Size of the thread pool for the gRPC server. | COMMENT |
| LOW | etc/config-template.toml | 221 | COMMENT | |
| LOW | etc/config-template.toml | 241 | ## By default, it will be set to 12.5% of the available memory of TiKV. | COMMENT |
| LOW | etc/config-template.toml | 261 | ## If handle time is larger than the threshold, it will print slow log in endpoint. | COMMENT |
| LOW | etc/config-template.toml | 281 | COMMENT | |
| LOW | etc/config-template.toml | 301 | COMMENT | |
| LOW | etc/config-template.toml | 321 | ## It is recommended to turn on shared block cache. Since only the total cache size need to be | COMMENT |
| LOW | etc/config-template.toml | 341 | ## Support change dynamically. | COMMENT |
| LOW | etc/config-template.toml | 361 | ## in one second. Internally it prefers throttling background operations over foreground | COMMENT |
| LOW | etc/config-template.toml | 381 | COMMENT | |
| LOW | etc/config-template.toml | 401 | ## can improve TiKV performance. | COMMENT |
| LOW | etc/config-template.toml | 421 | ## Store min resolved ts tick interval for reporting to PD. | COMMENT |
| LOW | etc/config-template.toml | 441 | # raft-log-gc-tick-interval = "3s" | COMMENT |
| LOW | etc/config-template.toml | 461 | ## How long the peer will be considered down and reported to PD when it hasn't been active for this | COMMENT |
| LOW | etc/config-template.toml | 481 | # region-compact-min-redundant-rows = 50000 | COMMENT |
| LOW | etc/config-template.toml | 501 | ## Use how many threads to handle log apply | COMMENT |
| LOW | etc/config-template.toml | 521 | # split-region-on-table = false | COMMENT |
| 718 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | components/pd_client/src/client_v2.rs | 499 | let env = self.raw_client.core.context.connector.env.clone(); | CODE |
| CRITICAL⚡ | components/raftstore/src/store/fsm/store.rs | 1078 | self.previous_append = self.poll_ctx.raft_metrics.ready.append.get(); | CODE |
| CRITICAL⚡ | components/raftstore/src/store/fsm/store.rs | 1079 | self.previous_message = self.poll_ctx.raft_metrics.ready.message.get(); | CODE |
| CRITICAL⚡ | components/raftstore/src/store/fsm/store.rs | 1080 | self.previous_snapshot = self.poll_ctx.raft_metrics.ready.snapshot.get(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/store.rs | 2501 | self.ctx.raft_metrics.message_dropped.stale_msg.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/store.rs | 2650 | self.ctx.raft_metrics.message_dropped.region_overlap.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 755 | self.ctx.raft_metrics.message_dropped.step_local_msg.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 922 | self.ctx.raft_metrics.ready.propose_delay.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1009 | target_index: self.fsm.peer.raft_group.raft.raft_log.last_index(), | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1050 | target_index: self.fsm.peer.raft_group.raft.raft_log.last_index(), | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1104 | self.fsm.peer.raft_group.raft.raft_log.last_index() | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1142 | let target_index = self.fsm.peer.raft_group.raft.raft_log.last_index(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1266 | let pending_admin = self.fsm.peer.raft_group.raft.has_pending_conf() | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1839 | self.fsm.peer.raft_group.raft.election_timeout() * 2 | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1845 | } else if self.fsm.peer.raft_group.raft.promotable() | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1860 | self.fsm.peer.raft_group.raft.randomized_election_timeout() | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1894 | if self.fsm.peer.raft_group.raft.r.raft_log.last_index() | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 1981 | self.fsm.peer.raft_group.raft.set_check_quorum(true); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2023 | self.fsm.peer.raft_group.raft.set_check_quorum(false); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2071 | self.fsm.peer.raft_group.raft.set_check_quorum(true); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2073 | if self.fsm.peer.raft_group.raft.promotable() { | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2153 | for (id, vote) in self.fsm.peer.raft_group.raft.prs().votes() { | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2379 | self.ctx.raft_metrics.ready.has_ready_region.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2794 | self.ctx.raft_metrics.propose.unsafe_read_index.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2928 | self.ctx.raft_metrics.message_dropped.disk_full.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 2939 | self.ctx.raft_metrics.message_dropped.non_witness.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3051 | self.ctx.raft_metrics.message_dropped.stale_msg.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3220 | for (peer_id, p) in self.fsm.peer.raft_group.raft.prs().iter() { | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3299 | self.fsm.peer.raft_group.raft.ping(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3507 | self.ctx.raft_metrics.message_dropped.stale_msg.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3536 | None => self.ctx.raft_metrics.message_dropped.applying_snap.inc(), | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3643 | self.ctx.raft_metrics.message_dropped.stale_msg.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3754 | self.ctx.raft_metrics.message_dropped.region_no_peer.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3784 | self.ctx.raft_metrics.message_dropped.stale_msg.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3819 | self.ctx.raft_metrics.message_dropped.region_overlap.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 3882 | self.ctx.raft_metrics.message_dropped.region_overlap.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 4163 | None => self.ctx.raft_metrics.message_dropped.applying_snap.inc(), | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 4529 | if cp.index >= self.fsm.peer.raft_group.raft.raft_log.first_index() { | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 4738 | let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 5517 | let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 5640 | self.fsm.peer.raft_group.raft.clear_commit_group(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 5641 | self.fsm.peer.raft_group.raft.assign_commit_groups(gb); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 5816 | let first_index = self.fsm.peer.raft_group.raft.r.raft_log.first_index(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 5992 | self.ctx.raft_metrics.invalid_proposal.force_leader.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6022 | self.ctx.raft_metrics.invalid_proposal.not_leader.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6034 | self.ctx.raft_metrics.invalid_proposal.witness.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6051 | self.ctx.raft_metrics.invalid_proposal.witness.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6058 | self.ctx.raft_metrics.invalid_proposal.non_witness.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6087 | self.ctx.raft_metrics.invalid_proposal.stale_command.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6099 | self.ctx.raft_metrics.invalid_proposal.epoch_not_match.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6348 | for (peer_id, p) in self.fsm.peer.raft_group.raft.prs().iter() { | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6412 | self.ctx.raft_metrics.raft_log_gc_skipped.reserve_log.inc(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 6518 | self.fsm.peer.request_index = self.fsm.peer.raft_group.raft.raft_log.last_index(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 7199 | let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 7210 | let transferring_leader = self.fsm.peer.raft_group.raft.lead_transferee.is_some(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 7469 | let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write(); | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 7557 | if self.fsm.peer.consistency_state.hash.is_empty() { | CODE |
| CRITICAL | components/raftstore/src/store/fsm/peer.rs | 7585 | && !self.fsm.peer.consistency_state.hash.is_empty() | CODE |
| CRITICAL | components/raftstore-v2/src/operation/query/mod.rs | 91 | self.store_ctx.raft_metrics.propose.local_read.inc(); | CODE |
| CRITICAL | components/server/src/server2.rs | 546 | self.core.config.resource_metering.precision.as_millis(), | CODE |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | etc/config-template.toml | 17 | ## Enable io snoop which utilize eBPF to get accurate disk io of TiKV | COMMENT |
| MEDIUM | …mponents/raftstore/src/coprocessor/split_check/keys.rs | 164 | // if bucket checker using scan is added, to utilize the scan, | COMMENT |
| MEDIUM | components/raftstore/src/store/config.rs | 343 | /// from entry cache, if they utilize memory more than | COMMENT |
| MEDIUM | components/raftstore/src/store/fsm/peer.rs | 4614 | // to utilize `collect_pending_peers` in `heartbeat_pd` to avoid | COMMENT |
| MEDIUM | components/snap_recovery/src/data_resolver.rs | 191 | // batch) a more robust test need to figure out what is best. | COMMENT |
| MEDIUM | components/resolved_ts/src/resolver.rs | 97 | // The region read progress used to utilize `resolved_ts` to serve stale read request | COMMENT |
| MEDIUM | components/causal_ts/src/tso.rs | 136 | /// 2. Fully utilize cached TSO when some regions require latest TSO (e.g. in | COMMENT |
| MEDIUM | components/tidb_query_aggr/src/lib.rs | 85 | // However current aggregation executor cannot utilize it. | COMMENT |
| MEDIUM | scripts/check-bins.py | 4 | # utilize sse4.2 extensions. | COMMENT |
| MEDIUM | src/server/config.rs | 243 | /// or dropped, if they utilize memory more than | COMMENT |
| MEDIUM | src/server/gc_worker/compaction_filter.rs | 825 | // won't utilize much CPU. So always perform GC at the bottommost level | COMMENT |
| MEDIUM | src/storage/txn/actions/common.rs | 39 | // Note that the scan can also utilize `last_change`. So once it finds a LOCK | COMMENT |
| MEDIUM | src/storage/mvcc/reader/scanner/backward.rs | 303 | // we don't need to seek any more and we can just utilize `last_version`. | COMMENT |
| MEDIUM | src/storage/raw/store.rs | 24 | // TODO: refactor to utilize generic type `KvFormat` and eliminate matching | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/failpoints/cases/test_snap.rs | 1184 | // ───────────────────┼────────────────── | COMMENT |
| MEDIUM⚡ | tests/failpoints/cases/test_split_region.rs | 578 | // ┌───────────┐ ┌───────────┐ ┌───────────┐ | COMMENT |
| MEDIUM⚡ | tests/failpoints/cases/test_split_region.rs | 582 | // ───────────────────┼───────────┼──┼───────────┼──┼───────────┼── | COMMENT |
| MEDIUM⚡ | tests/failpoints/cases/test_split_region.rs | 586 | // └───────────┘ └───────────┘ └───────────┘ | COMMENT |
| MEDIUM⚡ | components/backup-stream/src/metrics.rs | 20 | // ┌─────────┐ ┌────────┐ ┌───────┐ | COMMENT |
| MEDIUM⚡ | components/backup-stream/src/metrics.rs | 21 | // │ RUNNING ├──────► PAUSED ├──────► ERROR │ | COMMENT |
| MEDIUM⚡ | components/backup-stream/src/metrics.rs | 23 | // └───────────────┴───────────────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2444 | // Step 1: T1 acquires an exclusive lock. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2447 | // Step 2: T2 (legacy) tries to acquire an exclusive lock, gets blocked. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2469 | // Step 3: T3 (resumable) tries to acquire an exclusive lock, gets blocked. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2473 | // Step 4: Release T1's exclusive lock. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2478 | // Step 5: T4 acquires a shared lock before T3 resumes. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2482 | // Step 6: Remove the pause to allow delayed wake up, T3 will be woken up | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2487 | // Step 7: Now T3's AcquirePessimisticLockResumed is about to execute. | COMMENT |
| LOW | tests/integrations/server/raft_client.rs | 456 | // Step 1: Send messages to establish connections for stores 1, 2, 3 | COMMENT |
| LOW | tests/integrations/server/raft_client.rs | 481 | // Step 2: Add more stores (4, 5) to test dynamic store detection | COMMENT |
| LOW | src/storage/mvcc/reader/scanner/forward.rs | 233 | // In SI, we need to check if the lock will cause conflict. | COMMENT |
| LOW | src/storage/mvcc/reader/scanner/forward.rs | 251 | // key that does not have a write. In SI, we need to check if the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2444 | // Step 1: T1 acquires an exclusive lock. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2447 | // Step 2: T2 (legacy) tries to acquire an exclusive lock, gets blocked. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2469 | // Step 3: T3 (resumable) tries to acquire an exclusive lock, gets blocked. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2473 | // Step 4: Release T1's exclusive lock. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2478 | // Step 5: T4 acquires a shared lock before T3 resumes. | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2482 | // Step 6: Remove the pause to allow delayed wake up, T3 will be woken up | COMMENT |
| LOW⚡ | tests/failpoints/cases/test_storage.rs | 2487 | // Step 7: Now T3's AcquirePessimisticLockResumed is about to execute. | COMMENT |
| LOW | tests/integrations/server/raft_client.rs | 456 | // Step 1: Send messages to establish connections for stores 1, 2, 3 | COMMENT |
| LOW | tests/integrations/server/raft_client.rs | 481 | // Step 2: Add more stores (4, 5) to test dynamic store detection | COMMENT |
| LOW | components/raftstore/src/store/fsm/peer.rs | 3965 | // NOTE: This method is used by both the leader and the follower. | COMMENT |
| LOW | …onents/tidb_query_datatype/src/codec/mysql/time/mod.rs | 546 | /// NOTE: This function assumes that `fsp` is in range: [0, 6]. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | components/raftstore-v2/src/worker/pd/split.rs | 169 | // TODO: implement half split | COMMENT |
| LOW | components/tidb_query_datatype/src/codec/datum.rs | 1027 | // TODO: implement datum write here. | COMMENT |
| LOW | components/tidb_query_datatype/src/codec/datum.rs | 1074 | // TODO: implement here after we implement datum write | COMMENT |
| LOW | …ents/tidb_query_datatype/src/codec/data_type/vector.rs | 283 | // TODO: implement here after we implement set encoding | COMMENT |
| LOW | …ents/tidb_query_datatype/src/codec/data_type/vector.rs | 356 | // TODO: implement here after we implement set encoding | COMMENT |
| LOW | …ents/tidb_query_datatype/src/codec/data_type/vector.rs | 473 | // TODO: implement set encoding | COMMENT |
| LOW | src/server/gc_worker/compaction_filter.rs | 84 | //TODO: Add test case to check the correctness of GC_COMPACTION_FAILURE | COMMENT |
| LOW | src/server/gc_worker/compaction_filter.rs | 107 | //TODO: Add test case to check the correctness of GC_COMPACTION_MVCC_ROLLBACK | COMMENT |
| LOW | src/server/gc_worker/compaction_filter.rs | 115 | //TODO: Add test case to check the correctness of GC_COMPACTION_FILTER_ORPHAN_VERSIONS | COMMENT |
| LOW | src/server/gc_worker/compaction_filter.rs | 139 | //TODO: Add test case to check the correctness of GC_COMPACTION_FILTER_MVCC_DELETION_WASTED | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | metrics/grafana/common.py | 1016 | # Fix grafana heatmap migration panic if options is null. | COMMENT |
| HIGH | metrics/grafana/common.py | 1195 | "matcher": {"id": "byName", "options": "Last (not null)"}, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | metrics/grafana/common.py | 162 | def skip_default_instance_selector(self) -> "Expr": | CODE |
| LOW | metrics/grafana/common.py | 1050 | def graph_panel_histogram_quantiles( | CODE |
| LOW | metrics/grafana/common.py | 1146 | def heatmap_panel_graph_panel_histogram_quantile_pairs( | CODE |
| LOW⚡ | scripts/check-build-opts.py | 67 | def cargo_check_test_engines_ext(kv_engine, raft_engine): | CODE |
| LOW⚡ | scripts/check-build-opts.py | 70 | def cargo_test_test_engines_ext(kv_engine, raft_engine): | CODE |
| LOW⚡ | scripts/check-build-opts.py | 73 | def cargo_run_test_engines_ext(cmd, extra_args, kv_engine, raft_engine): | CODE |
| LOW | scripts/check-bins.py | 95 | def is_openssl_vendored_enabled(features): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …tstore-v2/src/operation/command/admin/merge/prepare.rs | 228 | /// - Target region epoch as requested is identical with the local version. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | etc/config-template.toml | 278 | ## In most cases you can use the default value. When importing data, you can set it to a larger | COMMENT |
| MEDIUM | components/raftstore/src/store/config.rs | 641 | // the log commit duration is less than 1s. Feel free to adjust | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | metrics/grafana/common.py | 757 | CODE | |
| LOW | metrics/grafana/common.py | 815 | CODE | |
| LOW | metrics/grafana/common.py | 847 | CODE | |
| LOW | metrics/grafana/common.py | 901 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | etc/config-template.toml | 299 | ## Set it to 0 will cause no space is reserved at all. It's generally used for tests. | COMMENT |
| LOW | etc/config-template.toml | 305 | ## Set it to 0 will cause no space is reserved at all. It's generally used for tests. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | doc/maintenance-guides/components/server.md | 11 | ### Bootstrap orchestration view | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | metrics/grafana/common.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/check-bins.py | 27 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/storage/txn/actions/cleanup.rs | 219 | must_prewrite_put(engine, key, b"dummy_value", key, gc_fence.prev()); | CODE |