AI Slop Code Risk Monitor

tikv/tikv

SlopCodeMonitor badge for tikv/tikv Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Distributed transactional key-value database, originally created to complement TiDB

2.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for tikv/tikv, a Rust project with 16,931 GitHub stars. SynthScan examined 733,696 lines of code across 1476 source files, recording 972 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 2.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.2
Adjusted Signal
2.2
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
16.9K
Stars
Rust
Language
733.7K
Lines of Code
1.5K
Files
972
Pattern Hits
2026-10-31
Scan Date
0.06
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 877 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.7/100 · LOW

Are imports declared and package/API names verified? 88 finding(s).

Agent Over-Engineering Ratio 0.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 18 finding(s).

PR Review Velocity Impact 11.5/100 · LOW

Which changes need focused human review? 972 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 84HIGH 3MEDIUM 24LOW 861

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 972 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block813 hits · 768 pts
SeverityFileLineSnippetContext
LOWCargo.toml221tempdir = { path = "patches/tempdir" }COMMENT
LOWdeny.toml61ignore = [COMMENT
LOWdeny.toml81 # Ignore RUSTSEC-2026-0174, as it does not introduce safety issues, onlyCOMMENT
LOWdeny.toml101 # panics are enabled and `std::panic::catch_unwind` is used with key typesCOMMENT
LOWcmd/tikv-ctl/src/cmd.rs421 },COMMENT
LOWcmd/tikv-ctl/src/cmd.rs541 /// output file pathCOMMENT
LOWcmd/tikv-ctl/src/cmd.rs581 data_dir: String,COMMENT
LOWcmd/tikv-ctl/src/cmd.rs601 #[clap(long, default_value = "symlink")]COMMENT
LOWcmd/tikv-ctl/src/cmd.rs821 )]COMMENT
LOWtests/failpoints/mod.rs1// Copyright 2017 TiKV Project Authors. Licensed under Apache-2.0.COMMENT
LOWtests/failpoints/cases/test_snap.rs1181 // k2 (split point)COMMENT
LOWtests/failpoints/cases/test_hibernate.rs361 rx.recv_timeout(Duration::from_secs(1)).unwrap(),COMMENT
LOWtests/failpoints/cases/test_conf_change.rs201 cluster.must_put(key, value);COMMENT
LOWtests/failpoints/cases/test_replica_read.rs341 router.send_raft_message(read_index_msg).unwrap();COMMENT
LOWtests/failpoints/cases/test_disk_snap_br.rs1// Copyright 2023 TiKV Project Authors. Licensed under Apache-2.0.COMMENT
LOWtests/failpoints/cases/test_in_memory_engine.rs321COMMENT
LOWtests/failpoints/cases/test_engine.rs61// note: before rocksdb/pull/347, lock is called before on_memtable_sealed.COMMENT
LOWtests/failpoints/cases/test_split_region.rs581 // [k2, +∞) │ │ │ │ │ │COMMENT
LOWtests/failpoints/cases/test_split_region.rs1441 fail::remove("on_apply_batch_split");COMMENT
LOWtests/failpoints/cases/test_early_apply.rs101/// between restarting. However, this guarantee can be broken byCOMMENT
LOWtests/failpoints/cases/test_replica_stale_read.rs221COMMENT
LOWtests/failpoints/cases/test_replica_stale_read.rs381 // The round now handles the election tick and then the region update; theCOMMENT
LOWtests/failpoints/cases/test_sst_ingest.rs21use test_raftstore::*;COMMENT
LOWtests/failpoints/cases/test_storage.rs2381}COMMENT
LOWtests/failpoints/cases/test_merge.rs761 pd_client.must_merge(left.get_id(), right.get_id());COMMENT
LOWtests/failpoints/cases/test_merge.rs961 // Write data for waiting the merge to rollback easilyCOMMENT
LOWtests/failpoints/cases/test_merge.rs1841// commit merge at the same time before this fix which corrupt the region.COMMENT
LOWtests/failpoints/cases/test_merge.rs2061COMMENT
LOWtests/failpoints/cases/test_stale_read.rs261 assert_ne!(leader1.get_store_id(), leader1000.get_store_id());COMMENT
LOWtests/failpoints/cases/test_stale_read.rs281 // Region 1000 F L FCOMMENT
LOWtests/integrations/raftstore/test_snap.rs281 must_get_equal(&cluster.get_engine(3), b"k11", b"v11");COMMENT
LOWtests/integrations/raftstore/test_stale_peer.rs21/// - Peer B gets down. And then A adds D, E, F into the cluster.COMMENT
LOWtests/integrations/raftstore/test_stale_peer.rs101 let mut cluster = new_server_cluster(0, count);COMMENT
LOWtests/integrations/raftstore/test_unsafe_recovery.rs1381 assert_eq!(cluster.must_get(b"k4"), Some(b"v4".to_vec()));COMMENT
LOWtests/integrations/raftstore/test_lease_read.rs21// A helper function for testing the lease reads and lease renewing.COMMENT
LOWtests/integrations/raftstore/test_lease_read.rs661/// 1. Add heartbeat msg filter.COMMENT
LOWtests/integrations/raftstore/test_bootstrap.rs281 let msg = PeerMsg::FlushBeforeClose { tx };COMMENT
LOWtests/integrations/storage/test_titan.rs301 // L5: [delete(a_7)]COMMENT
LOWtests/integrations/storage/test_storage.rs921COMMENT
LOWetc/config-template.toml1## TiKV config templateCOMMENT
LOWetc/config-template.toml21## Use abort when TiKV panic. By default TiKV will use _exit() on panic, in that caseCOMMENT
LOWetc/config-template.toml41## this threshold, it can squeeze some internal components (e.g. evicting cached Raft entries)COMMENT
LOWetc/config-template.toml61# background-read-bandwidth = "0B"COMMENT
LOWetc/config-template.toml81## max log file keep daysCOMMENT
LOWetc/config-template.toml101COMMENT
LOWetc/config-template.toml121## The following configurations only take effect when `use-unified-pool` is false.COMMENT
LOWetc/config-template.toml141## Size of the stack for each thread in the thread pool.COMMENT
LOWetc/config-template.toml161# max-tasks-per-worker-normal = 2000COMMENT
LOWetc/config-template.toml181## overload, and so which ones it throttles and deprioritizes.COMMENT
LOWetc/config-template.toml201## immediately.COMMENT
LOWetc/config-template.toml221## background requests. Use it to stop a large background scan, such as the scan phase of aCOMMENT
LOWetc/config-template.toml241## other background reads. Point gets that TiKV merges from a `BatchCommands` stream areCOMMENT
LOWetc/config-template.toml261## Listening address.COMMENT
LOWetc/config-template.toml281## Size of the thread pool for the gRPC server.COMMENT
LOWetc/config-template.toml301COMMENT
LOWetc/config-template.toml321## By default, it will be set to 12.5% of the available memory of TiKV.COMMENT
LOWetc/config-template.toml341## region thread and other thread of delay-insensitive tasks.COMMENT
LOWetc/config-template.toml361## The number of slots in Scheduler latches, which controls write concurrency.COMMENT
LOWetc/config-template.toml381## `max(reserve-space, capacity * 5%)` will be reserved exactly.COMMENT
LOWetc/config-template.toml401## Set to 0 to disable this feature if you want to panic immediately when encountering such an error.COMMENT
753 more matches not shown…
Hallucination Indicators84 hits · 695 pts
SeverityFileLineSnippetContext
CRITICALcomponents/pd_client/src/client_v2.rs499 let env = self.raw_client.core.context.connector.env.clone();CODE
CRITICAL⚡components/raftstore/src/store/fsm/store.rs1147 self.previous_append = self.poll_ctx.raft_metrics.ready.append.get();CODE
CRITICAL⚡components/raftstore/src/store/fsm/store.rs1148 self.previous_message = self.poll_ctx.raft_metrics.ready.message.get();CODE
CRITICAL⚡components/raftstore/src/store/fsm/store.rs1149 self.previous_snapshot = self.poll_ctx.raft_metrics.ready.snapshot.get();CODE
CRITICALcomponents/raftstore/src/store/fsm/store.rs2583 self.ctx.raft_metrics.message_dropped.stale_msg.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/store.rs2732 self.ctx.raft_metrics.message_dropped.region_overlap.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs783 self.ctx.raft_metrics.message_dropped.step_local_msg.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs949 self.ctx.raft_metrics.ready.propose_delay.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1036 target_index: self.fsm.peer.raft_group.raft.raft_log.last_index(),CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1077 target_index: self.fsm.peer.raft_group.raft.raft_log.last_index(),CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1131 self.fsm.peer.raft_group.raft.raft_log.last_index()CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1169 let target_index = self.fsm.peer.raft_group.raft.raft_log.last_index();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1293 let pending_admin = self.fsm.peer.raft_group.raft.has_pending_conf()CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1866 self.fsm.peer.raft_group.raft.election_timeout() * 2CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1872 } else if self.fsm.peer.raft_group.raft.promotable()CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1887 self.fsm.peer.raft_group.raft.randomized_election_timeout()CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs1921 if self.fsm.peer.raft_group.raft.r.raft_log.last_index()CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2008 self.fsm.peer.raft_group.raft.set_check_quorum(true);CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2050 self.fsm.peer.raft_group.raft.set_check_quorum(false);CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2098 self.fsm.peer.raft_group.raft.set_check_quorum(true);CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2100 if self.fsm.peer.raft_group.raft.promotable() {CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2180 for (id, vote) in self.fsm.peer.raft_group.raft.prs().votes() {CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2406 self.ctx.raft_metrics.ready.has_ready_region.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2821 self.ctx.raft_metrics.propose.unsafe_read_index.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2955 self.ctx.raft_metrics.message_dropped.disk_full.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs2966 self.ctx.raft_metrics.message_dropped.non_witness.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3078 self.ctx.raft_metrics.message_dropped.stale_msg.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3247 for (peer_id, p) in self.fsm.peer.raft_group.raft.prs().iter() {CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3326 self.fsm.peer.raft_group.raft.ping();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3534 self.ctx.raft_metrics.message_dropped.stale_msg.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3563 None => self.ctx.raft_metrics.message_dropped.applying_snap.inc(),CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3670 self.ctx.raft_metrics.message_dropped.stale_msg.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3781 self.ctx.raft_metrics.message_dropped.region_no_peer.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3811 self.ctx.raft_metrics.message_dropped.stale_msg.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3846 self.ctx.raft_metrics.message_dropped.region_overlap.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs3909 self.ctx.raft_metrics.message_dropped.region_overlap.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs4193 None => self.ctx.raft_metrics.message_dropped.applying_snap.inc(),CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs4559 if cp.index >= self.fsm.peer.raft_group.raft.raft_log.first_index() {CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs4768 let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs5547 let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs5670 self.fsm.peer.raft_group.raft.clear_commit_group();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs5671 self.fsm.peer.raft_group.raft.assign_commit_groups(gb);CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs5842 let first_index = self.fsm.peer.raft_group.raft.r.raft_log.first_index();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6018 self.ctx.raft_metrics.invalid_proposal.force_leader.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6048 self.ctx.raft_metrics.invalid_proposal.not_leader.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6060 self.ctx.raft_metrics.invalid_proposal.witness.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6077 self.ctx.raft_metrics.invalid_proposal.witness.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6084 self.ctx.raft_metrics.invalid_proposal.non_witness.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6113 self.ctx.raft_metrics.invalid_proposal.stale_command.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6125 self.ctx.raft_metrics.invalid_proposal.epoch_not_match.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6374 for (peer_id, p) in self.fsm.peer.raft_group.raft.prs().iter() {CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6438 self.ctx.raft_metrics.raft_log_gc_skipped.reserve_log.inc();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs6544 self.fsm.peer.request_index = self.fsm.peer.raft_group.raft.raft_log.last_index();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs7227 let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs7238 let transferring_leader = self.fsm.peer.raft_group.raft.lead_transferee.is_some();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs7497 let mut pessimistic_locks = self.fsm.peer.txn_ext.pessimistic_locks.write();CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs7585 if self.fsm.peer.consistency_state.hash.is_empty() {CODE
CRITICALcomponents/raftstore/src/store/fsm/peer.rs7613 && !self.fsm.peer.consistency_state.hash.is_empty()CODE
CRITICALcomponents/raftstore-v2/src/operation/query/mod.rs91 self.store_ctx.raft_metrics.propose.local_read.inc();CODE
CRITICALcomponents/server/src/server2.rs547 self.core.config.resource_metering.precision.as_millis(),CODE
24 more matches not shown…
AI Slop Vocabulary14 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMetc/config-template.toml17## Enable io snoop which utilize eBPF to get accurate disk io of TiKVCOMMENT
MEDIUM…mponents/raftstore/src/coprocessor/split_check/keys.rs164 // if bucket checker using scan is added, to utilize the scan,COMMENT
MEDIUMcomponents/raftstore/src/store/config.rs343 /// from entry cache, if they utilize memory more thanCOMMENT
MEDIUMcomponents/raftstore/src/store/fsm/peer.rs4644 // to utilize `collect_pending_peers` in `heartbeat_pd` to avoidCOMMENT
MEDIUMcomponents/snap_recovery/src/data_resolver.rs191// batch) a more robust test need to figure out what is best.COMMENT
MEDIUMcomponents/resolved_ts/src/resolver.rs97 // The region read progress used to utilize `resolved_ts` to serve stale read requestCOMMENT
MEDIUMcomponents/causal_ts/src/tso.rs136/// 2. Fully utilize cached TSO when some regions require latest TSO (e.g. inCOMMENT
MEDIUMcomponents/tidb_query_aggr/src/lib.rs85 // However current aggregation executor cannot utilize it.COMMENT
MEDIUMscripts/check-bins.py4# utilize sse4.2 extensions.COMMENT
MEDIUMsrc/server/config.rs248 /// or dropped, if they utilize memory more thanCOMMENT
MEDIUMsrc/server/gc_worker/compaction_filter.rs825 // won't utilize much CPU. So always perform GC at the bottommost levelCOMMENT
MEDIUMsrc/storage/txn/actions/common.rs39 // Note that the scan can also utilize `last_change`. So once it finds a LOCKCOMMENT
MEDIUMsrc/storage/mvcc/reader/scanner/backward.rs303 // we don't need to seek any more and we can just utilize `last_version`.COMMENT
MEDIUMsrc/storage/raw/store.rs24// TODO: refactor to utilize generic type `KvFormat` and eliminate matchingCOMMENT
Decorative Section Separators7 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtests/failpoints/cases/test_snap.rs1184 // ───────────────────┼──────────────────COMMENT
MEDIUM⚡tests/failpoints/cases/test_split_region.rs578 // ┌───────────┐ ┌───────────┐ ┌───────────┐COMMENT
MEDIUM⚡tests/failpoints/cases/test_split_region.rs582 // ───────────────────┼───────────┼──┼───────────┼──┼───────────┼──COMMENT
MEDIUM⚡tests/failpoints/cases/test_split_region.rs586 // └───────────┘ └───────────┘ └───────────┘COMMENT
MEDIUM⚡components/backup-stream/src/metrics.rs20 // ┌─────────┐ ┌────────┐ ┌───────┐COMMENT
MEDIUM⚡components/backup-stream/src/metrics.rs21 // │ RUNNING ├──────► PAUSED ├──────► ERROR │COMMENT
MEDIUM⚡components/backup-stream/src/metrics.rs23 // └───────────────┴───────────────┘COMMENT
Verbosity Indicators11 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡tests/failpoints/cases/test_storage.rs2473 // Step 1: T1 acquires an exclusive lock.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2476 // Step 2: T2 (legacy) tries to acquire an exclusive lock, gets blocked.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2498 // Step 3: T3 (resumable) tries to acquire an exclusive lock, gets blocked.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2502 // Step 4: Release T1's exclusive lock.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2507 // Step 5: T4 acquires a shared lock before T3 resumes.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2511 // Step 6: Remove the pause to allow delayed wake up, T3 will be woken upCOMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2516 // Step 7: Now T3's AcquirePessimisticLockResumed is about to execute.COMMENT
LOWtests/integrations/server/raft_client.rs509 // Step 1: Send messages to establish connections for stores 1, 2, 3COMMENT
LOWtests/integrations/server/raft_client.rs534 // Step 2: Add more stores (4, 5) to test dynamic store detectionCOMMENT
LOWsrc/storage/mvcc/reader/scanner/forward.rs233 // In SI, we need to check if the lock will cause conflict.COMMENT
LOWsrc/storage/mvcc/reader/scanner/forward.rs251 // key that does not have a write. In SI, we need to check if theCOMMENT
Structural Annotation Overuse11 hits · 21 pts
SeverityFileLineSnippetContext
LOW⚡tests/failpoints/cases/test_storage.rs2473 // Step 1: T1 acquires an exclusive lock.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2476 // Step 2: T2 (legacy) tries to acquire an exclusive lock, gets blocked.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2498 // Step 3: T3 (resumable) tries to acquire an exclusive lock, gets blocked.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2502 // Step 4: Release T1's exclusive lock.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2507 // Step 5: T4 acquires a shared lock before T3 resumes.COMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2511 // Step 6: Remove the pause to allow delayed wake up, T3 will be woken upCOMMENT
LOW⚡tests/failpoints/cases/test_storage.rs2516 // Step 7: Now T3's AcquirePessimisticLockResumed is about to execute.COMMENT
LOWtests/integrations/server/raft_client.rs509 // Step 1: Send messages to establish connections for stores 1, 2, 3COMMENT
LOWtests/integrations/server/raft_client.rs534 // Step 2: Add more stores (4, 5) to test dynamic store detectionCOMMENT
LOWcomponents/raftstore/src/store/fsm/peer.rs3992 // NOTE: This method is used by both the leader and the follower.COMMENT
LOW…onents/tidb_query_datatype/src/codec/mysql/time/mod.rs546 /// NOTE: This function assumes that `fsp` is in range: [0, 6].COMMENT
TODO Padding10 hits · 15 pts
SeverityFileLineSnippetContext
LOWcomponents/raftstore-v2/src/worker/pd/split.rs169 // TODO: implement half splitCOMMENT
LOWcomponents/tidb_query_datatype/src/codec/datum.rs1027 // TODO: implement datum write here.COMMENT
LOWcomponents/tidb_query_datatype/src/codec/datum.rs1074 // TODO: implement here after we implement datum writeCOMMENT
LOW…ents/tidb_query_datatype/src/codec/data_type/vector.rs283 // TODO: implement here after we implement set encodingCOMMENT
LOW…ents/tidb_query_datatype/src/codec/data_type/vector.rs356 // TODO: implement here after we implement set encodingCOMMENT
LOW…ents/tidb_query_datatype/src/codec/data_type/vector.rs473 // TODO: implement set encodingCOMMENT
LOWsrc/server/gc_worker/compaction_filter.rs84 //TODO: Add test case to check the correctness of GC_COMPACTION_FAILURECOMMENT
LOWsrc/server/gc_worker/compaction_filter.rs107 //TODO: Add test case to check the correctness of GC_COMPACTION_MVCC_ROLLBACKCOMMENT
LOWsrc/server/gc_worker/compaction_filter.rs115 //TODO: Add test case to check the correctness of GC_COMPACTION_FILTER_ORPHAN_VERSIONSCOMMENT
LOWsrc/server/gc_worker/compaction_filter.rs139 //TODO: Add test case to check the correctness of GC_COMPACTION_FILTER_MVCC_DELETION_WASTEDCOMMENT
Cross-Language Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHmetrics/grafana/common.py1016 # Fix grafana heatmap migration panic if options is null.COMMENT
HIGHmetrics/grafana/common.py1195 "matcher": {"id": "byName", "options": "Last (not null)"},CODE
Hyper-Verbose Identifiers7 hits · 8 pts
SeverityFileLineSnippetContext
LOWmetrics/grafana/common.py162 def skip_default_instance_selector(self) -> "Expr":CODE
LOWmetrics/grafana/common.py1050def graph_panel_histogram_quantiles(CODE
LOWmetrics/grafana/common.py1146def heatmap_panel_graph_panel_histogram_quantile_pairs(CODE
LOW⚡scripts/check-build-opts.py67def cargo_check_test_engines_ext(kv_engine, raft_engine):CODE
LOW⚡scripts/check-build-opts.py70def cargo_test_test_engines_ext(kv_engine, raft_engine):CODE
LOW⚡scripts/check-build-opts.py73def cargo_run_test_engines_ext(cmd, extra_args, kv_engine, raft_engine):CODE
LOWscripts/check-bins.py95def is_openssl_vendored_enabled(features):CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…tstore-v2/src/operation/command/admin/merge/prepare.rs228 /// - Target region epoch as requested is identical with the local version.COMMENT
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMetc/config-template.toml362## In most cases you can use the default value. When importing data, you can set it to a largerCOMMENT
MEDIUMcomponents/raftstore/src/store/config.rs641 // the log commit duration is less than 1s. Feel free to adjustCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWmetrics/grafana/common.py757CODE
LOWmetrics/grafana/common.py815CODE
LOWmetrics/grafana/common.py847CODE
LOWmetrics/grafana/common.py901CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWetc/config-template.toml383## Set it to 0 will cause no space is reserved at all. It's generally used for tests.COMMENT
LOWetc/config-template.toml389## Set it to 0 will cause no space is reserved at all. It's generally used for tests.COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdoc/maintenance-guides/components/server.md11### Bootstrap orchestration viewCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmetrics/grafana/common.py1CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/check-bins.py27CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/storage/txn/actions/cleanup.rs219 must_prewrite_put(engine, key, b"dummy_value", key, gc_fence.prev());CODE