instance_id
string
set
string
key_version
string
defect_id
string
title
string
statement
string
kind
string
severity
string
sites
list
evidence
string
counts_if
string
provenance_hunt
bool
provenance_hunt_refs
list
provenance_dataset_refs
list
provenance_reviewer_comments
list
provenance_added_in
string
benchmark_limitation
string
bot_derived_reference
string
repo
string
head_commit
string
ClickHouse__ClickHouse@5fb6ee3
rest145
2
D1
arrayLastIndex documentation is built but never passed to registerFunction
arrayFirstLastIndex.cpp builds documentation_last (lines 148-164) but the registration at line 166 is still `factory.registerFunction<FunctionArrayLastIndex>();` with no argument, so the new description, syntax, examples and version for arrayLastIndex are dead code; system.functions and the generated reference still ca...
incomplete-fix
medium
[ { "path": "src/Functions/array/arrayFirstLastIndex.cpp", "from_line": 164, "to_line": 166, "role": "cause" } ]
arrayFirstLastIndex.cpp:164 `FunctionDocumentation documentation_last = {description_last, ...};` followed by :166 `factory.registerFunction<FunctionArrayLastIndex>();`, whereas :146 passes `documentation_first`. The 02415 references keep `arrayLastIndex` while removing its siblings.
Must say documentation_last is unused / arrayLastIndex is registered without its documentation.
true
[]
[ "R8" ]
[ "C5", "C13", "C19", "N1", "N4", "N5", "N10" ]
null
null
null
ClickHouse/ClickHouse
5fb6ee38d2d7d2fc6e1a67005b12d3b9aaac418f
ClickHouse__ClickHouse@5fb6ee3
rest145
2
D2
arrayMax's returned-value text says it returns the minimum of the lambda results
returned_value_max reads 'Returns the maximum element in the source array, or the minimum element of the lambda results if provided.' (arrayAggregation.cpp:482). arrayMax returns the maximum in both forms; the published doc states the opposite for the lambda overload.
maintainability
low
[ { "path": "src/Functions/array/arrayAggregation.cpp", "from_line": 482, "to_line": 482, "role": "cause" } ]
arrayAggregation.cpp:482 `returned_value_max = "Returns the maximum element in the source array, or the minimum element of the lambda results if provided."`; description_max (:471-475) and the example (:485, result 12) say maximum.
Must flag 'minimum' in arrayMax's returned value.
true
[]
[ "R2" ]
[ "C15", "C16", "C17", "N5", "N12" ]
null
null
null
ClickHouse/ClickHouse
5fb6ee38d2d7d2fc6e1a67005b12d3b9aaac418f
ClickHouse__ClickHouse@5fb6ee3
rest145
2
D3
arraySum's documented syntax names arrayMax
syntax_sum is "arrayMax([func(x[, y1, ..., yN])], source[, cond1, ... , condN])" (arrayAggregation.cpp:498) and is registered for FunctionArraySum, so the arraySum reference shows the wrong function name (copy-paste).
maintainability
low
[ { "path": "src/Functions/array/arrayAggregation.cpp", "from_line": 498, "to_line": 498, "role": "cause" } ]
arrayAggregation.cpp:498 `FunctionDocumentation::Syntax syntax_sum = "arrayMax([func(x[, y1, ..., yN])], ...`.
Must point at the arraySum syntax string naming arrayMax.
true
[]
[]
[ "C8", "C11", "C21", "N5", "N6", "N7", "N9" ]
null
null
null
ClickHouse/ClickHouse
5fb6ee38d2d7d2fc6e1a67005b12d3b9aaac418f
ClickHouse__ClickHouse@5fb6ee3
rest145
2
D4
arrayLast's 'No match' example calls arrayFirst
examples_last's second example (arrayFirstLast.cpp:262-266) is `SELECT arrayFirst(x, y -> x=y, [0, 1, 2], [3, 3, 3]) ...`, so the arrayLast documentation demonstrates a different function (copy-paste); the output happens to be identical, hiding the mistake.
maintainability
low
[ { "path": "src/Functions/array/arrayFirstLast.cpp", "from_line": 262, "to_line": 266, "role": "cause" } ]
arrayFirstLast.cpp:264 `"SELECT arrayFirst(x, y -> x=y, [0, 1, 2], [3, 3, 3]) AS res, toTypeName(res)"` inside `examples_last`.
Must flag the arrayFirst call in arrayLast's example.
true
[]
[ "R4" ]
[ "C7", "C23", "C25", "N5" ]
null
null
null
ClickHouse/ClickHouse
5fb6ee38d2d7d2fc6e1a67005b12d3b9aaac418f
ClickHouse__ClickHouse@5fb6ee3
rest145
2
D5
arrayReverseSplit documents its lambda as Optional though the function requires it
arguments_split marks func as 'Optional. A lambda function ...' (arraySplit.cpp:136), but ArraySplitImpl::needExpression() returns true (arraySplit.cpp:19), so FunctionArrayMapped requires at least 2 arguments (FunctionArrayMapped.h:167) and a lambda-less arrayReverseSplit call errors; the doc is wrong and inconsistent...
maintainability
low
[ { "path": "src/Functions/array/arraySplit.cpp", "from_line": 136, "to_line": 136, "role": "cause" } ]
arraySplit.cpp:19 `static bool needExpression() { return true; }`; :136 `{"func(x[, y1, ..., yN])", "Optional. A lambda function ..."}`.
Must say the lambda is wrongly marked optional for arrayReverseSplit.
true
[]
[]
[ "C22", "C29" ]
null
null
null
ClickHouse/ClickHouse
5fb6ee38d2d7d2fc6e1a67005b12d3b9aaac418f
ClickHouse__ClickHouse@5fb6ee3
rest145
2
D6
arrayAll and arrayExists document the lambda as mandatory though both accept a bare array
The new syntax strings `arrayAll(func(x[, y1, ..., yN]), source[, ...])` (arrayAll.cpp:69) and `arrayExists(func(...), source[, ...])` (arrayExists.cpp:70) and their argument lists present func as required, but ArrayAllImpl/ArrayExistsImpl::needExpression() return false (arrayAll.h:16, arrayExists.h:17), so FunctionArr...
maintainability
low
[ { "path": "src/Functions/array/arrayAll.cpp", "from_line": 69, "to_line": 71, "role": "cause" }, { "path": "src/Functions/array/arrayExists.cpp", "from_line": 70, "to_line": 72, "role": "cause" } ]
arrayAll.h:16 and arrayExists.h:17 `static bool needExpression() { return false; }`; FunctionArrayMapped.h:167 `size_t min_args = (Impl::needExpression() ? 2 : 1) + num_fixed_params;`; array-functions.md:2477/2483 headings `arrayExists(\[func,\] arr1, ...)`, `arrayAll(\[func,\] arr1, ...)`.
Must say the lambda should be shown as optional for arrayAll and/or arrayExists. Not the arrayReverseSplit case (D5), which is the opposite error.
false
[]
[]
[ "C4", "C26", "N11" ]
null
null
null
ClickHouse/ClickHouse
5fb6ee38d2d7d2fc6e1a67005b12d3b9aaac418f
ClickHouse__ClickHouse@40a4654
rest145
2
D1
Read error after rows were already emitted no longer aborts the insert: the partial rows are committed and the file is retried, duplicating data
Before the PR, a pull() failure on a file that had already produced rows (processed_rows > 0) re-threw, failing the insert pipeline so none of the file's rows were committed. Now the catch at ObjectStorageQueueSource.cpp:599-609 always marks the file ErrorOnRead and returns an empty chunk, which ends the stream normall...
data
high
[ { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 599, "to_line": 609, "role": "cause" }, { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 690, "to_line": 694, "role": "symptom" }, { "path": "src/S...
head Source.cpp:604-608 `processed_files.back().state = FileState::ErrorOnRead; ... /// Stop processing and commit what is already processed. return {};` with no processed_rows check; the removed base code was `if (file_status->processed_rows == 0) { ... return {}; } throw;`. :463-465 `if (!chunk && commit_once_process...
Must say that a read error after some chunks of the file were already emitted now ends the insert successfully (instead of throwing), so the partial rows are committed while the file is marked failed/retriable, leading to duplicate rows on retry. Comments only about the lost in-pass returnForRetry re-queue (zero-row ca...
false
[]
[]
[ "C8", "C16", "C17", "C33", "N3", "N5", "N6", "N7", "N8" ]
null
null
null
ClickHouse/ClickHouse
40a4654d7b114f1d42f48680d57007ae80897cd1
ClickHouse__ClickHouse@40a4654
rest145
2
D2
Keeper response indices not shifted after dropping the check request: session-expiry case throws LOGICAL_ERROR and failures are attributed to the wrong request
The PR removes makeCheckRequest(processing_node_id_path, version) that used to sit before the two removals, but keeps the old index maps. In the new resetProcessing (ObjectStorageQueueIFileMetadata.cpp:279-331) the multi is [0]=remove processing_id node (versioned), [1]=remove ephemeral processing node, yet index 1 is ...
bug
medium
[ { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueIFileMetadata.cpp", "from_line": 279, "to_line": 331, "role": "cause" }, { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueUnorderedFileMetadata.cpp", "from_line": 123, "to_line": 199, "role": "cause" }, ...
IFileMetadata.cpp:279-285 `check_processing_id_path_idx = 0; remove_processing_id_path_idx = 1; remove_processing_path_idx = 2;` with only two requests pushed (remove id, remove processing_node_path); :311-316 index-1 failure -> `unexpected_error = true; failure_reason = "Failed to remove processing id path"` -> :330-3...
Must identify that the response-index constants/map were not updated after removing the check request (in resetProcessing, Unordered setProcessedImpl, or Ordered setProcessedImpl tied to this change), so a failure is attributed to the wrong request (ephemeral-node miss -> LOGICAL_ERROR, /processed-exists misreported) o...
true
[]
[]
[ "C13", "C15", "C18", "C20", "C26", "C35", "C1", "C23", "C37", "N1", "N8" ]
null
null
null
ClickHouse/ClickHouse
40a4654d7b114f1d42f48680d57007ae80897cd1
ClickHouse__ClickHouse@40a4654
rest145
2
D3
Insert-failure path wipes the attempt's processed rows and timestamps before the queue log entry is written
setFailed(reduce_retry_count=false) now calls resetProcessing() (IFileMetadata.cpp:386-389), whose SCOPE_EXIT runs FileStatus::reset() (:267-269, reset at :66-73 sets processed_rows=0, processing_start_time/end_time={}, retries=0). commit() then calls appendLogElement (Source.cpp:697-700), which reads rows_processed, p...
bug
low
[ { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueIFileMetadata.cpp", "from_line": 267, "to_line": 269, "role": "cause" }, { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueIFileMetadata.cpp", "from_line": 386, "to_line": 391, "role": "cause" }, { "p...
IFileMetadata.cpp:267 `SCOPE_EXIT({ file_status->reset(); });`; FileStatus::reset `processing_start_time = {}; processing_end_time = {}; processed_rows = 0; retries = 0;`; :388 `resetProcessing();` then :391 `file_status->onFailed(exception_message);` (sets only end time); Source.cpp appendLogElement `.rows_processed =...
Must say the reset of FileStatus during the insert-failure path loses processed rows / processing times before appendLogElement records the failure. Comments about resetting local status on keeper-cleanup exceptions (C9/C25) are a different claim.
false
[]
[]
[ "C28", "C29", "N9" ]
null
null
null
ClickHouse/ClickHouse
40a4654d7b114f1d42f48680d57007ae80897cd1
ClickHouse__ClickHouse@40a4654
rest145
2
D4
New comment says Cancelled files 'will not be set as Failed', but commit() sets them Failed
generateImpl marks the half-read file FileState::Cancelled with the comment 'Mark file as Cancelled, such files will not be set as Failed' (ObjectStorageQueueSource.cpp:489-490 and :513-514), but commit() handles Cancelled by falling through to Processing and calling setFailed(exception_message, false) (:677-688), whic...
maintainability
low
[ { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 489, "to_line": 490, "role": "cause" }, { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 513, "to_line": 514, "role": "other-site" }, { "path": "sr...
:489 `/// Mark file as Cancelled, such files will not be set as Failed.`; :677-687 `case FileState::Cancelled: [[fallthrough]]; case FileState::Processing: { ... file_metadata->setFailed(exception_message, /* reduce_retry_count */false);`; IFileMetadata.cpp:364 `ProfileEvents::increment(ProfileEvents::ObjectStorageQueu...
Must point out the contradiction between the Cancelled comment and commit() calling setFailed for Cancelled files. C3 (Cancelled is redundant because commit treats it like Processing) is a simplification suggestion and does not say the comment is wrong; R9 does not count.
true
[]
[]
[]
null
null
null
ClickHouse/ClickHouse
40a4654d7b114f1d42f48680d57007ae80897cd1
ClickHouse__ClickHouse@40a4654
rest145
2
D5
Refactor leftovers: orphaned setProcessedImpl(bool) declaration and a now-unfed returnForRetry/objects_to_retry queue
The PR deletes the definition and only caller of ObjectStorageQueueUnorderedFileMetadata::setProcessedImpl(bool remove_processing_nodes_only) but leaves its declaration in ObjectStorageQueueUnorderedFileMetadata.h:31, advertising a reset path that no longer exists. It also removes the only call to FileIterator::returnF...
maintainability
low
[ { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueUnorderedFileMetadata.h", "from_line": 31, "to_line": 31, "role": "cause" }, { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 159, "to_line": 174, "role": "other-site" } ]
Unordered .h:31 `void setProcessedImpl(bool remove_processing_nodes_only);` with no definition after the diff; `git grep returnForRetry` at head finds only the declaration (Source.h:60) and definition (Source.cpp:159) — no caller.
Either leftover counts: the orphaned bool overload declaration, or the unused returnForRetry/objects_to_retry machinery. Comments arguing the in-pass retry should be restored (C24/C34) are a behaviour claim, not this.
false
[]
[]
[ "C10", "C31", "C11" ]
null
null
null
ClickHouse/ClickHouse
40a4654d7b114f1d42f48680d57007ae80897cd1
ClickHouse__ClickHouse@36ea28a
rest145
2
D1
Removing Identifier.h from IQueryTreeNode.h leaves Analyzer/Resolve/TableExpressionData.h using IdentifierView without including it
The PR drops `#include <Analyzer/Identifier.h>` from src/Analyzer/IQueryTreeNode.h (head ~line 11). src/Analyzer/Resolve/TableExpressionData.h includes only <IO/Operators.h> and <Analyzer/ColumnNode.h> (lines 3-4) and got IdentifierView transitively via ColumnNode.h -> IQueryTreeNode.h; it uses IdentifierView by value ...
build
low
[ { "path": "src/Analyzer/Resolve/TableExpressionData.h", "from_line": 1, "to_line": 5, "role": "cause" }, { "path": "src/Analyzer/Resolve/TableExpressionData.h", "from_line": 45, "to_line": 53, "role": "other-site" }, { "path": "src/Analyzer/IQueryTreeNode.h", "from_li...
pr.diff IQueryTreeNode.h: `-#include <Analyzer/Identifier.h>`; head TableExpressionData.h:3-4 `#include <IO/Operators.h>` / `#include <Analyzer/ColumnNode.h>`; :45 `bool hasFullIdentifierName(IdentifierView identifier_view) const`; :50 `bool canBindIdentifier(IdentifierView identifier_view) const`; ColumnNode.h include...
Must say TableExpressionData.h (Analyzer/Resolve) uses IdentifierView but lost its transitive Identifier.h include through IQueryTreeNode.h/ColumnNode.h, so it is no longer self-contained / order-dependent, and needs a direct include. Low because the current build is masked by include order in IdentifierResolveScope.h....
false
[]
[]
[ "N1", "N5" ]
extension-2026-09-28
null
null
ClickHouse/ClickHouse
36ea28ab28fd93258143ab4312e60e2b5e244843
ClickHouse__ClickHouse@73ecc7d
rest145
2
D1
empty/notEmpty string documentation is built but never registered (dead code, docs never exposed)
src/Functions/empty.cpp:198-237 builds documentation_empty_string and documentation_not_empty_string (String category), but the registrations at empty.cpp:239-240 still pass the Array-category documentation_not_empty / documentation_empty. The new string docs never reach system.functions or the generated docs; the bloc...
incomplete-fix
medium
[ { "path": "src/Functions/empty.cpp", "from_line": 236, "to_line": 237, "role": "cause" }, { "path": "src/Functions/empty.cpp", "from_line": 239, "to_line": 240, "role": "symptom" } ]
empty.cpp:236 `FunctionDocumentation documentation_empty_string = {...category_string};`, :237 likewise; :239 `factory.registerFunction<FunctionEmptyOverloadResolver<true, NameNotEmpty>>(documentation_not_empty);` :240 `...(documentation_empty);`. No other reference to the *_string objects.
Must say the new string docs for empty/notEmpty are unused / registration still passes the array docs. Claiming a build break (unused variable) overstates it (FunctionDocumentation has a non-trivial destructor) but still counts if it names the unused objects.
true
[]
[ "R12" ]
[ "C9", "C20", "C21", "N1", "N4", "N9" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D2
base64Encode argument documented as 'to decode'
src/Functions/base64Encode.cpp:26 documents the argument of the encoding function as 'Plaintext column or constant to decode.' (copy-paste from base64Decode), so published docs state the opposite of what the function does.
maintainability
low
[ { "path": "src/Functions/base64Encode.cpp", "from_line": 26, "to_line": 26, "role": "cause" } ]
base64Encode.cpp:26 `{"plaintext", "Plaintext column or constant to decode.", {"String"}}`
Must point at the wrong verb 'decode' in base64Encode's argument description.
true
[]
[ "R2" ]
[ "C7", "C10", "N1" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D3
base64URLDecode argument documented as 'to encode'
src/Functions/base64URLDecode.cpp:27 describes the argument of a decoding function as 'String column or constant to encode.', contradicting the function and the rest of the same sentence.
maintainability
low
[ { "path": "src/Functions/base64URLDecode.cpp", "from_line": 27, "to_line": 27, "role": "cause" } ]
base64URLDecode.cpp:27 `{"encoded", "String column or constant to encode. If the string is not valid Base64-encoded, an exception is thrown.", {"String"}}`
Must point at 'to encode' in base64URLDecode's argument description.
true
[]
[ "R3" ]
[ "C6", "C24", "N1" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D4
extractTextFromHTML example output does not match what the function returns ('World !' not 'World!')
The new example (extractTextFromHTML.cpp:381) feeds `<p>Hello <b>World</b>!</p>` and shows `Page Title Hello World!` (line 390). In extract() (line ~262) needs_whitespace is true after 'World' (dst[-1] != ' '), and copyText (lines ~225-236) writes a ' ' before the '!' fragment, so the real output is `Page Title Hello W...
maintainability
low
[ { "path": "src/Functions/extractTextFromHTML.cpp", "from_line": 390, "to_line": 390, "role": "cause" }, { "path": "src/Functions/extractTextFromHTML.cpp", "from_line": 225, "to_line": 236, "role": "other-site" } ]
copyText: `if (needs_whitespace && src < lt) { *dst = ' '; ++dst; }`; extract: `bool needs_whitespace = dst != dst_begin && dst[-1] != ' ';` — after skipTag('</b>') dst ends with 'World', so '!' is preceded by a space. Example output line 390 `│ Page Title Hello World! │`.
Must say the example's expected output is wrong because a space is inserted before '!' (after the closing tag). A comment only about the truncated column header does not count.
false
[]
[]
[ "C14", "C18", "C26", "N5" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D5
compareSubstrings offsets/num_bytes documented as UInt* though they must be constant
compareSubstrings.cpp:385-387 document s1_offset, s2_offset and num_bytes with type `UInt*`, but getReturnTypeImpl validates each with isColumnConst and names them `const UInt*` (lines 45-47); per-row columns are rejected. The same PR uses the `const String` convention for concatWithSeparator's separator, so the new ty...
contract
low
[ { "path": "src/Functions/compareSubstrings.cpp", "from_line": 385, "to_line": 387, "role": "cause" }, { "path": "src/Functions/compareSubstrings.cpp", "from_line": 45, "to_line": 47, "role": "other-site" } ]
compareSubstrings.cpp:45 `{"string1_offset", ...&isUInt), isColumnConst, "const UInt*"}` vs :385 `{"s1_offset", ..., {"UInt*"}}`.
Must say the numeric arguments must be constant (const UInt*) and the docs omit that. A comment about 'zero-based' vs 'zero-based index' wording does not count.
false
[]
[]
[ "C4", "C8", "C16", "N3" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D6
convertCharset from/to documented as plain String though they must be constant
convertCharset.cpp:230-231 document `from` and `to` as `String`, but getArgumentsThatAreAlwaysConstant returns {1, 2} and executeImpl throws ILLEGAL_COLUMN unless both are constant strings (lines ~185-205), so the new typed contract admits per-row columns that fail.
contract
low
[ { "path": "src/Functions/convertCharset.cpp", "from_line": 230, "to_line": 231, "role": "cause" } ]
convertCharset.cpp `ColumnNumbers getArgumentsThatAreAlwaysConstant() const override { return {1, 2}; }` and `"2nd and 3rd arguments of function {} ... must be constant strings."`; docs `{"from", "Source character encoding.", {"String"}}`.
Must say the charset arguments must be constant and the docs do not say so. A comment about the garbled 'Caf\ufffd' example output does not count.
false
[]
[]
[ "C11", "C17", "N2" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D7
concatWithSeparatorAssumeInjective expression types listed as String/FixedString, contradicting its own description and the impl
concatWithSeparator.cpp:219 lists the accepted types of exp1, exp2, ... for the injective variant as {String, FixedString}, while the same argument's description says other types are converted via default serialization and the shared ConcatWithSeparatorImpl does convert them (lines ~124-144); the non-injective variant ...
maintainability
low
[ { "path": "src/Functions/concatWithSeparator.cpp", "from_line": 219, "to_line": 219, "role": "cause" } ]
concatWithSeparator.cpp:219 `{"exp1, exp2, ...", "...Arguments which are not of type `String` or `FixedString` are converted...", {"String", "FixedString"}}`; impl else-branch `/// A non-String/non-FixedString-type argument: use the default serialization`; both variants are ConcatWithSeparatorImpl<..., bool>.
Must point at the injective variant's type list being narrower than what the function accepts / contradicting the description. (concat.cpp:299 has the same pattern for concatAssumeInjective; a comment there also counts.)
false
[]
[]
[ "C1", "C23", "N1" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@73ecc7d
rest145
2
D8
concatAssumeInjective example queries a key_val table that the docs never create
concat.cpp:308 shows `SELECT ... FROM key_val GROUP BY concatAssumeInjective(key1, key2)` with data-dependent output rows, but unlike the markdown it replaces (string-functions.md:907-908 CREATE/INSERT) the example has no table definition or data, so the example cannot be reproduced and its output is unexplained.
maintainability
low
[ { "path": "src/Functions/concat.cpp", "from_line": 308, "to_line": 308, "role": "cause" } ]
concat.cpp:308 `"SELECT concat(key1, key2), sum(value) FROM key_val GROUP BY concatAssumeInjective(key1, key2)"`; docs/en/sql-reference/functions/string-functions.md:907 `CREATE TABLE key_val(...)`, :908 `INSERT INTO key_val VALUES ...`.
Must say the example depends on a key_val table / data that is not provided. A comment arguing the shown data is non-injective is a different claim (excluded C27).
false
[]
[]
[ "C3" ]
null
null
null
ClickHouse/ClickHouse
73ecc7d809300ed1c29e1078712c531ebddcb181
ClickHouse__ClickHouse@3143520
rest145
2
D1
USE_AWS_MEMORY_MANAGEMENT is set in the wrong CMake scope, too late, so the AWS nodump memory manager is never used
The AWS SDK only routes allocations through SDKOptions.memoryManagementOptions.memoryManager when the SDK itself is compiled with USE_AWS_MEMORY_MANAGEMENT, which is generated into aws/core/SDKConfig.h. contrib/aws-cmake/CMakeLists.txt:121-123 declares `OPTION(USE_AWS_MEMORY_MANAGEMENT ... OFF)` and immediately configu...
incomplete-fix
medium
[ { "path": "src/configure_config.cmake", "from_line": 85, "to_line": 92, "role": "cause" }, { "path": "src/IO/S3/Client.cpp", "from_line": 990, "to_line": 993, "role": "symptom" } ]
src/configure_config.cmake:87 `set(USE_AWS_MEMORY_MANAGEMENT 1)`; contrib/aws-cmake/CMakeLists.txt:121 `OPTION(USE_AWS_MEMORY_MANAGEMENT "Aws memory management" OFF)` then :122 `configure_file("${AWS_SDK_CORE_DIR}/include/aws/core/SDKConfig.h.in" ...)`; CMakeLists.txt:482 `add_subdirectory (contrib EXCLUDE_FROM_ALL)` p...
A comment must say the flag set in configure_config.cmake does not reach the AWS SDK's build/SDKConfig.h (scope or ordering), so the memory manager passed to InitAPI has no effect. Saying only that the google_cloud_cpp branch should not set it (R13) does not count.
true
[]
[]
[ "C4", "C25", "C26", "C27", "N1", "N4", "N9", "N5" ]
null
null
null
ClickHouse/ClickHouse
314352043db0170026d11475bcaf67c7bb4fc311
ClickHouse__ClickHouse@3143520
rest145
2
D2
Short keys (16-byte AES-128, the default) live in NoDumpString's inline SSO buffer, never in the nodump arena
NoDumpString is std::basic_string with a custom allocator (src/Common/JemallocNodumpSTLAllocator.h:86-91). libc++'s small-string optimisation stores up to 22 chars inside the string object without calling the allocator, so 16-byte AES-128 keys (AES_128_CTR is DEFAULT_ENCRYPTION_ALGORITHM, src/Disks/DiskEncrypted.cpp:30...
security
medium
[ { "path": "src/Common/JemallocNodumpSTLAllocator.h", "from_line": 86, "to_line": 91, "role": "cause" }, { "path": "src/Disks/DiskEncryptedTransaction.h", "from_line": 22, "to_line": 25, "role": "symptom" }, { "path": "src/IO/FileEncryptionCommon.h", "from_line": 98, ...
JemallocNodumpSTLAllocator.h:87-91 `using NoDumpString = std::basic_string<char, std::char_traits<char>, NoDumpCharAllocator>;`; DiskEncryptedTransaction.h:25 `std::unordered_map<UInt128, NoDumpString> all_keys;` (default node allocator); DiskEncrypted.cpp:30 `DEFAULT_ENCRYPTION_ALGORITHM = Algorithm::AES_128_CTR`; Fil...
Must identify small-string optimisation keeping short keys inside the string object (outside the allocator), so they remain dumpable. Complaints only about temporary std::string copies from config do not count.
true
[]
[ "R10" ]
[ "C10", "C18", "C21" ]
null
null
null
ClickHouse/ClickHouse
314352043db0170026d11475bcaf67c7bb4fc311
ClickHouse__ClickHouse@3143520
rest145
2
D3
madvise failure message reports errnoToString(-1) instead of errno
In JemallocNodumpAllocatorImpl::alloc (src/Common/JemallocNodumpAllocatorImpl.cpp:36-44) madvise returns -1 on failure and sets errno, but the code passes the return value to errnoToString, so the exception text reads 'Unknown error -1' instead of the real reason in both the MADV_DONTDUMP and MADV_NOCORE branches (unli...
maintainability
low
[ { "path": "src/Common/JemallocNodumpAllocatorImpl.cpp", "from_line": 36, "to_line": 44, "role": "cause" } ]
JemallocNodumpAllocatorImpl.cpp:36-38 `if (auto ret = madvise(result, size, MADV_DONTDUMP)) { throw std::runtime_error(Poco::format("Failed to run madvise: %s", errnoToString(ret))); }`; base/base/errnoToString.h `std::string errnoToString(int the_errno = errno);`
Must say the madvise return value (-1) rather than errno is passed to errnoToString. Comments about the throw itself crossing jemalloc's callback belong in the excluded group.
false
[]
[]
[ "C8", "C22", "C11", "N5" ]
null
null
null
ClickHouse/ClickHouse
314352043db0170026d11475bcaf67c7bb4fc311
ClickHouse__ClickHouse@f9987c8
rest145
2
D1
Non-strict (non-injective) monotonic chains are still classified as POINT constraints, so multi-column keys are wrongly treated as one continuous range (wrong exact ranges / count())
The new pre-pass (KeyCondition.cpp:2903-2939) admits any chain whose functions are is_always_monotonic, but ignores is_strict. The constraint classifier below (2956-2971) still marks a column POINT when the RPN element's range is a single value (element.range.left == element.range.right) or a one-element set — but with...
bug
high
[ { "path": "src/Storages/MergeTree/KeyCondition.cpp", "from_line": 2903, "to_line": 2939, "role": "cause" }, { "path": "src/Storages/MergeTree/KeyCondition.cpp", "from_line": 2956, "to_line": 2971, "role": "cause" }, { "path": "src/Storages/MergeTree/MergeTreeDataSelectExe...
KeyCondition.cpp:2917 `if (!monotonicity.is_always_monotonic) return false;` (no is_strict check); 2964-2966 `if (element.range.left == element.range.right) column_constraints[element.key_column] = Constraint::POINT;` (range is post-chain). IFunctionDateOrDateTime.h:90 and toStartOfInterval.cpp:50 return {.is_monotonic...
Must say that a non-strict / non-injective always-monotonic function turns an equality into a key RANGE, so treating it as POINT (or not requiring is_strict) breaks the continuity assumption for later key columns (wrong/too-wide ranges, wrong exact count, or assertion). A comment merely saying 'Field{} as range is odd'...
true
[]
[]
[ "C13", "C15", "N1", "N2", "N3", "N4" ]
null
null
null
ClickHouse/ClickHouse
f9987c89a4cfaa95269385f24323dc6f44cda6e9
ClickHouse__ClickHouse@f9987c8
rest145
2
D2
New test uses the non-existent time zone 'Asia/shanghai' (wrong case), so the second query block fails and the test output mismatches its reference
tests/queries/0_stateless/03518_key_condition_binary_search.sh:25 declares `DateTime64(3, 'Asia/shanghai')`. ClickHouse resolves time-zone names by exact, case-sensitive match against the embedded tzdata list (contrib/cctz-cmake/CMakeLists.txt:66 generates `if (std::string_view("<TZ>") == name) ...`), falling back to c...
build
medium
[ { "path": "tests/queries/0_stateless/03518_key_condition_binary_search.sh", "from_line": 25, "to_line": 25, "role": "cause" }, { "path": "tests/queries/0_stateless/03518_key_condition_binary_search.reference", "from_line": 2, "to_line": 2, "role": "symptom" } ]
sh:25 `timestamp DateTime64(3, 'Asia/shanghai')`; every other test/source spelling is 'Asia/Shanghai' (src/Client/ClientBaseHelpers.cpp:47, src/Functions/dateTimeToSnowflakeID.cpp:142); no lowercase region/city tz name appears anywhere else in tests/queries (git grep -E "'(europe|asia|america)/[a-z]" finds none); getTi...
Must say the time-zone name casing is wrong ('Asia/Shanghai') and the test will error/fail. Severity kept at medium because it only breaks the new test, not the product; it would likely pass on a case-insensitive macOS filesystem via the fallback loader.
true
[]
[ "R4" ]
[ "C11", "C14" ]
null
null
null
ClickHouse/ClickHouse
f9987c89a4cfaa95269385f24323dc6f44cda6e9
ClickHouse__ClickHouse@79224f2
rest145
2
D1
new_batch is compacted but file_metadatas is not, so surviving objects are paired with the wrong file metadata
When prepareSetProcessingRequests returns nullopt for some entry, ObjectStorageQueueSource.cpp:240-252 rebuilds new_batch without the null entries, but file_metadatas (filled per original index at :196) keeps its original size and order and is not cleared on the ZOK path. next() then returns `object_infos[index]` with ...
bug
high
[ { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 240, "to_line": 252, "role": "cause" }, { "path": "src/Storages/ObjectStorageQueue/ObjectStorageQueueSource.cpp", "from_line": 268, "to_line": 275, "role": "symptom" } ]
:196 `file_metadatas[i] = metadata->getFileMetadata(...)`; :208 `new_batch[i] = nullptr;`; :240-251 only new_batch is compacted (`new_batch_copy[i++] = std::move(object); ... new_batch = std::move(new_batch_copy);`); file_metadatas is cleared only in the tryMulti failure branch (:237); :268-270 `std::make_pair(object_i...
Must say file_metadatas is not filtered/compacted alongside new_batch (index misalignment between objects and metadata / path-mismatch assert). Comments about resize()+assign efficiency do not count.
true
[]
[]
[ "C3", "C4", "C7", "N1", "N2", "N3", "N4" ]
null
null
null
ClickHouse/ClickHouse
79224f240cf020f73a9f492ce293d046fc0b7949
ClickHouse__ClickHouse@f9d51fa
rest145
2
D1
ReadonlyDisks is delta-only and misses the readonly state set at startup: it undercounts and goes negative on recovery
The gauges are maintained purely as deltas inside DiskLocalCheckThread::run() (DiskLocalCheckThread.cpp:50-51 sample, 83-84 add), but `readonly` is also set outside the thread: IDisk::startup runs checkAccess() before startupImpl (IDisk.cpp:205-218) and DiskLocal::checkAccessImpl sets `readonly = true` when the root is...
bug
medium
[ { "path": "src/Disks/DiskLocalCheckThread.cpp", "from_line": 83, "to_line": 84, "role": "cause" }, { "path": "src/Disks/DiskLocalCheckThread.cpp", "from_line": 50, "to_line": 51, "role": "cause" }, { "path": "src/Disks/DiskLocal.cpp", "from_line": 656, "to_line": ...
DiskLocalCheckThread.cpp:83 `CurrentMetrics::add(CurrentMetrics::ReadonlyDisks, diskStatusChange(readonly, disk->isReadOnly()));` with `bool readonly = disk->isReadOnly();` sampled at run() start; DiskLocal.cpp:664 `readonly = true; return;` in checkAccessImpl (no metric update); IDisk.cpp:216-218 `checkAccess(); } sta...
Counts if a comment says the metrics only record transitions inside run() and so miss the initial/startup readonly state (checkAccessImpl), leading to an undercount or a negative ReadonlyDisks after recovery. Comments about SYSTEM RESTART DISK or disk removal leaving stale contributions do not count (SYSTEM RESTART DIS...
true
[]
[]
[ "C2", "C1", "C6", "N1", "N2", "N6", "N7" ]
null
null
null
ClickHouse/ClickHouse
f9d51faa7cba634f38a711494003d404946b05de
ClickHouse__ClickHouse@f9d51fa
rest145
2
D2
BrokenDisks never counts a disk marked broken during startup, because the checker that owns the gauge is disabled for it
BrokenDisks is only ever moved by DiskLocalCheckThread::run() (DiskLocalCheckThread.cpp:84), but DiskLocal::startupImpl marks a disk broken itself when setup() throws (e.g. no read access to the disk directory, DiskLocal.cpp:680-684) and in the same catch sets disk_checker_can_check_read = false, so disk_checker->start...
bug
low
[ { "path": "src/Disks/DiskLocalCheckThread.cpp", "from_line": 84, "to_line": 84, "role": "cause" }, { "path": "src/Disks/DiskLocal.cpp", "from_line": 745, "to_line": 761, "role": "other-site" } ]
DiskLocal.cpp startupImpl: `catch (...) { tryLogCurrentException(logger, fmt::format("Disk {} is marked as broken during startup", name)); broken = true; /// Disk checker is disabled when failing to start up. disk_checker_can_check_read = false; } if (disk_checker && disk_checker_can_check_read) disk_checker->startup()...
Must say that a disk marked broken in DiskLocal::startupImpl (setup() failure) is never counted in BrokenDisks because the checker is disabled / run() never runs for it. The ReadonlyDisks startup undercount/negative value via checkAccessImpl is D1, not this; claims about SYSTEM RESTART DISK or disk removal leaving stal...
false
[]
[]
[ "N2", "N3", "N6" ]
extension-2026-09-28
null
null
ClickHouse/ClickHouse
f9d51faa7cba634f38a711494003d404946b05de
ClickHouse__ClickHouse@3eee886
rest145
2
D1
Thread names are no longer set for pool tasks that run without a thread group (or in the same group)
Every converted site previously called setThreadName(...) unconditionally (e.g. threadPoolCallbackRunnerUnsafe, ThreadPoolCallbackRunnerLocal, PipelineExecutor 'QueryPipelineEx', UniqExactSet, DWARFDecoder, PrettyWriter, SystemReplicas, pushing/completed pipeline executors). The new ThreadGroupSwitcher constructor retu...
maintainability
low
[ { "path": "src/Interpreters/ThreadStatusExt.cpp", "from_line": 173, "to_line": 204, "role": "cause" }, { "path": "src/Common/threadPoolCallbackRunner.h", "from_line": 35, "to_line": 35, "role": "symptom" }, { "path": "src/Common/threadPoolCallbackRunner.h", "from_line...
ThreadStatusExt.cpp:177 `if (!thread_group) return;` and :184-189 same-group early return precede :202-203 `if (thread_name[0] != '\0') setThreadName(thread_name);`. The diff removes unconditional `setThreadName(thread_name.data());` (runner, old line 154), `setThreadName(my_thread_name.data());` (old 190), `setThreadN...
Counts if the comment says the requested thread name is not applied when the group is null (or equal to the current group), i.e. naming became conditional on attaching, at the switcher or at any converted call site. Comments that only ask for a name instead of "" at Aggregator/DistributedSink/merge-task sites do not co...
true
[]
[]
[ "C5", "C7", "C8", "C9", "C10", "C11", "C12", "C15", "C17", "C22", "C23", "C25", "C26", "N4" ]
null
null
null
ClickHouse/ClickHouse
3eee8866fb55acab61eaba6dc9eebd847f483913
ClickHouse__ClickHouse@d67628c
rest145
2
D1
Initial tasks and all initial async tasks are assigned to thread 0, serializing async (remote) sources on one thread
initializeExecution now calls tasks.init(num_threads, 1, ...) (src/Processors/Executors/PipelineExecutor.cpp:372), so ExecutorTasks::fill (src/Processors/Executors/ExecutorTasks.cpp:176-208) wraps next_thread to 0 after every element: every initial async task goes into thread 0's async queue and every initial task into...
performance
medium
[ { "path": "src/Processors/Executors/PipelineExecutor.cpp", "from_line": 372, "to_line": 373, "role": "cause" }, { "path": "src/Processors/Executors/ExecutorTasks.cpp", "from_line": 176, "to_line": 208, "role": "symptom" }, { "path": "src/Processors/Executors/ExecutorTasks...
src/Processors/Executors/PipelineExecutor.cpp:372 `tasks.init(num_threads, 1, profile_processors, …)` (base: `size_t use_threads = cpu_slots->grantedCount();`). src/Processors/Executors/ExecutorTasks.cpp:185-193 `async_task_queue.addTask(next_thread, …); ++next_thread; if (next_thread >= use_threads) next_thread = 0;`;...
Must identify that passing use_threads=1 to init/fill concentrates the initial async tasks on thread 0 (thread-affine), losing parallelism. A generic 'may reduce parallelism' without the init/fill mechanism is a near-miss; C16 (scan overhead stealing ordinary tasks from queue 0) does not count.
true
[]
[]
[ "C9", "N3" ]
null
null
null
ClickHouse/ClickHouse
d67628cd7e7aeeba2a60bea273c5cfc08714120c
ClickHouse__ClickHouse@d67628c
rest145
2
D2
Thread-count regression tests weakened to vacuous `>= 1` checks
tests/queries/0_stateless/01415_overlimiting_threads_for_repica_bug.sql:11, tests/queries/0_stateless/02015_global_in_threads.sh:11 and tests/queries/0_stateless/02845_threads_count_in_distributed_queries.sql.j2:105,219 now assert `length(thread_ids) >= 1` / `peak_threads >= 1`, which any executed query satisfies (the ...
maintainability
low
[ { "path": "tests/queries/0_stateless/02845_threads_count_in_distributed_queries.sql.j2", "from_line": 105, "to_line": 105, "role": "cause" }, { "path": "tests/queries/0_stateless/02845_threads_count_in_distributed_queries.sql.j2", "from_line": 219, "to_line": 220, "role": "cause"...
tests/queries/0_stateless/02845_threads_count_in_distributed_queries.sql.j2:105 `if(peak_threads >= 1, 'ok', …)` (was >= 77); :219 (was >= 95); tests/queries/0_stateless/02015_global_in_threads.sh:11 `length(thread_ids) >= 1` (was >= 32); tests/queries/0_stateless/01415_overlimiting_threads_for_repica_bug.sql:11 `>= 1`...
Must say the thresholds were relaxed to trivially-true values so the tests no longer detect loss of parallelism (or excessive spawning).
true
[]
[]
[ "C3", "C4", "C6", "C7", "C8", "C10", "C12", "C15", "C17", "N1", "N4" ]
null
null
null
ClickHouse/ClickHouse
d67628cd7e7aeeba2a60bea273c5cfc08714120c
ClickHouse__ClickHouse@d67628c
rest145
2
D3
Throttled spawning leaves granted CPU slots unacquired but still counted by ConcurrencyControl
ConcurrencyControl::allocate counts every granted slot in cur_concurrency immediately; granted slots return only when an acquired slot is destroyed or the allocation is freed. Before, spawnThreads acquired every granted slot; now it stops once tasks.shouldSpawn() is false (src/Processors/Executors/PipelineExecutor.cpp:...
resource
medium
[ { "path": "src/Processors/Executors/PipelineExecutor.cpp", "from_line": 388, "to_line": 389, "role": "cause" }, { "path": "src/Processors/Executors/ExecutorTasks.h", "from_line": 75, "to_line": 75, "role": "cause" } ]
src/Processors/Executors/PipelineExecutor.cpp:389 `while (tasks.shouldSpawn() && (slot = cpu_slots->tryAcquire()))`; src/Common/ConcurrencyControl.cpp allocate: `cur_concurrency += granted;`. The PR relaxes test_concurrent_threads_soft_limit (`ConcurrencyControlSlotsAcquired == 100` -> `1..100`), consistent with slots ...
Must say that not acquiring granted slots keeps them reserved in ConcurrencyControl so other queries lose concurrency. Comments only about this query using fewer threads are D1, not this.
true
[]
[]
[ "N2" ]
null
null
null
ClickHouse/ClickHouse
d67628cd7e7aeeba2a60bea273c5cfc08714120c
ClickHouse__ClickHouse@d67628c
rest145
2
D4
Comment on upscale still says use_threads never drops below the initially granted count
src/Processors/Executors/PipelineExecutor.cpp:393-395 keeps `NOTE: this will not decrease use_threads below initially granted count`, but use_threads is now initialised to 1 (src/Processors/Executors/PipelineExecutor.cpp:372) regardless of the grant and grows one spawned thread at a time; the note describes the removed...
maintainability
low
[ { "path": "src/Processors/Executors/PipelineExecutor.cpp", "from_line": 393, "to_line": 395, "role": "cause" } ]
src/Processors/Executors/PipelineExecutor.cpp:394 `/// NOTE: this will not decrease \`use_threads\` below initially granted count`; :372 `tasks.init(num_threads, 1, …)`.
Must point at the stale 'initially granted count' comment.
false
[]
[]
[ "C11" ]
null
null
null
ClickHouse/ClickHouse
d67628cd7e7aeeba2a60bea273c5cfc08714120c
elastic__elasticsearch@5e318eb
rest145
2
D1
revokeNodeGrants() dereferences POLICY_MANAGER without the null guard newNodeGrant has
POLICY_MANAGER is null unless es.entitlement.enableForTests is true (TestEntitlementsRule.java:77-82). newNodeGrant guards on that (:148-150) but the public revokeNodeGrants (:164-167) unconditionally calls POLICY_MANAGER.clearModuleEntitlementsCache(). Its one caller, ESIntegTestCase.buildAndPutCluster (:550-552), inv...
bug
low
[ { "path": "test/framework/src/main/java/org/elasticsearch/entitlement/bootstrap/TestEntitlementsRule.java", "from_line": 164, "to_line": 167, "role": "cause" }, { "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "from_line": 549, "to_line": 553, ...
TestEntitlementsRule.java:80-81 `} else { POLICY_MANAGER = null; }`; :148 `if (POLICY_MANAGER == null) { return () -> {}; }` but :165-166 `BASE_DIR_PATHS.keySet().retainAll(List.of(TEMP)); POLICY_MANAGER.clearModuleEntitlementsCache();` unguarded; ESIntegTestCase.java:550-552 `if (testCluster != null) { IOUtils.closeWh...
A comment must identify the missing POLICY_MANAGER null check in revokeNodeGrants / NPE when entitlements are disabled. Graded low because the normal TEST-scope path clears the cluster map first (hunt graded it high on the assumption every second test reaches it). Thread-safety, typo or naming remarks do not count.
true
[]
[]
[ "C1", "C4", "C6", "C9", "N1", "N2", "N5", "N6" ]
null
null
null
elastic/elasticsearch
5e318eba16c2327289af2e96b9c099ec7469acfa
elastic__elasticsearch@5e318eb
rest145
2
D2
The new revokeNodeGrants() call on TEST-scoped cluster replacement is effectively never reached, so per-test grants are not revoked
The PR adds TEST_ENTITLEMENTS.revokeNodeGrants() inside `if (testCluster != null)` in buildAndPutCluster (ESIntegTestCase.java:550-553) as the 'where feasible' revocation between TEST-scoped clusters. But afterInternal (:608-615) closes the cluster and calls clearClusters() after every TEST-scoped test, emptying `clust...
incomplete-fix
low
[ { "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "from_line": 548, "to_line": 553, "role": "cause" }, { "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "from_line": 612, "to_line": 615, "role": "other-site" ...
ESIntegTestCase.java:540 `TestCluster testCluster = clusters.remove(clazz);`, :550-552 revoke only `if (testCluster != null)`; :613-614 `if (currentClusterScope == Scope.TEST) { clearClusters(); }`; clearClusters :562-565 `clusters.clear()`; TestEntitlementsRule.java:204 `// onClose.accept(this);` (close does nothing).
Must say the revocation in buildAndPutCluster is not reached for normal TEST scope because clusters were already cleared after the previous test, so grants accumulate across tests. Low because the PR body accepts grants living until suite end.
false
[]
[]
[ "C8" ]
null
null
null
elastic/elasticsearch
5e318eba16c2327289af2e96b9c099ec7469acfa
elastic__elasticsearch@bef908c
rest145
2
D1
Changed error messages in MultiDenseVectorScriptDocValues break existing unit-test assertions
The PR rewrites MISSING_VECTOR_FIELD_MESSAGE (MultiDenseVectorScriptDocValues.java:20, now "A document doesn't have a value for a vector field!") and the get() UnsupportedOperationException text (MultiDenseVectorScriptDocValues.java:60, now "accessing a vector field's value ..."), but MultiDenseVectorScriptDocValuesTes...
build
high
[ { "path": "server/src/main/java/org/elasticsearch/index/mapper/vectors/MultiDenseVectorScriptDocValues.java", "from_line": 20, "to_line": 20, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/index/mapper/vectors/MultiDenseVectorScriptDocValues.java", "from_line": 60, ...
MultiDenseVectorScriptDocValues.java:20 `MISSING_VECTOR_FIELD_MESSAGE = "A document doesn't have a value for a vector field!"`; :60 `"accessing a vector field's value through 'get' or 'value' is not supported, ..."`. MultiDenseVectorScriptDocValuesTests.java:179 `assertEquals("A document doesn't have a value for a mult...
A comment counts if it says the renamed error text in MultiDenseVectorScriptDocValues no longer matches assertions in MultiDenseVectorScriptDocValuesTests (either the missing-value message or the get()/value message), so those tests will fail. Comments merely preferring different wording of the messages (without noting...
false
[]
[]
[ "C3", "C6", "N1" ]
null
null
null
elastic/elasticsearch
bef908cb3aaf20210b267551df1210ad881722c5
elastic__elasticsearch@5e604e4
rest145
2
D1
Fast path ignores `offset`: compares the value count from docs[offset..] with the full docs.count() and builds a block of docs.count() positions, so partial-page reads (offset>0) can return wrong values / a wrongly sized block
tryReadDoubles starts at firstDoc = docs.get(offset) (ES819TSDBDocValuesProducer.java:1507) but checks `valueCount == docs.count()` (1534) and returns `factory.doubles(values, docs.count())` (1554). The documents to load are docs[offset..count), i.e. count-offset of them. With offset>0 (ValuesFromSingleReader.load re-r...
bug
medium
[ { "path": "server/src/main/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesProducer.java", "from_line": 1507, "to_line": 1507, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesProducer.java", "from_line": 1532, ...
ES819TSDBDocValuesProducer.java:1507 `final int firstDoc = docs.get(offset);`, 1532 `final int valueCount = lastIndex - firstIndex + 1;`, 1534 `if (valueCount == docs.count()) {`, 1554 `return factory.doubles(values, docs.count());`. Contrast readThenConvert (BlockDocValuesReader.java) which sizes by `docs.count() - of...
Must say the fast path mishandles a non-zero offset (count/size compared or built against docs.count() instead of docs.count()-offset). Comments only about docs being unsorted/duplicated (R5) or empty docs (R3) do not count.
true
[]
[]
[ "C6", "C8", "C11", "N1", "N2", "N3", "N5" ]
null
null
null
elastic/elasticsearch
5e604e492648a95f7adef067aeb2b9fc2ca4a206
elastic__elasticsearch@a3bac5f
rest145
2
D1
ES_VERSION_6 constants point at the v5 snapshots, so every 'version 6' test actually restores/mounts a v5 snapshot
TestSnapshotCases defines ES_VERSION_6 = "5" (TestSnapshotCases.java:21) and ES_VERSION_6_STANDARD_TOKEN_FILTER = "5_custom_analyzer" (:24), a copy-paste of the v5 constants. copySnapshotFromResources loads "snapshot_v" + version + ".zip", so RestoreFromVersion6IT and MountFromVersion6IT (which previously passed "6") n...
bug
high
[ { "path": "x-pack/qa/repository-old-versions-compatibility/src/javaRestTest/java/org/elasticsearch/oldrepos/TestSnapshotCases.java", "from_line": 20, "to_line": 24, "role": "cause" }, { "path": "x-pack/qa/repository-old-versions-compatibility/src/javaRestTest/java/org/elasticsearch/oldrepos/...
TestSnapshotCases.java:21 `public static final String ES_VERSION_6 = "5";` and :24 `public static final String ES_VERSION_6_STANDARD_TOKEN_FILTER = "5_custom_analyzer";`; the diff changes `super(version, "6")` to `super(version, TestSnapshotCases.ES_VERSION_6)` in RestoreFromVersion6IT/MountFromVersion6IT; AbstractUpgr...
Must say ES_VERSION_6 and/or ES_VERSION_6_STANDARD_TOKEN_FILTER hold v5 values so v6 tests load v5 fixtures. Pointing at either constant or at any of the four v6 test constructors with that reason counts.
true
[]
[ "R1" ]
[ "C2", "C4", "C5", "C6", "C9", "C10", "C11", "C12", "C15", "C16", "C17", "C18", "N2", "N5", "N6", "N8" ]
null
null
null
elastic/elasticsearch
a3bac5f2d4020183019a47d8d64c08123f7ec25d
elastic__elasticsearch@a3bac5f
rest145
2
D2
README labels the new version-6 custom-analyzer recipes as 'Version 5'
README.md adds two v6 custom-analyzer recipes but titles them '### Create Index Version 5 - Custom-Analyzer' (README.md:127, which uses the v6 'doc' type) and '### Add documents Version 5 - Custom-Analyzer' (README.md:186, POSTing via the v6 API), duplicating the v5 headers at :70 and :168. Anyone regenerating snapshot...
maintainability
low
[ { "path": "x-pack/qa/repository-old-versions-compatibility/src/javaRestTest/resources/README.md", "from_line": 127, "to_line": 127, "role": "cause" }, { "path": "x-pack/qa/repository-old-versions-compatibility/src/javaRestTest/resources/README.md", "from_line": 186, "to_line": 186, ...
README.md:70 and :127 both read '### Create Index Version 5 - Custom-Analyzer'; :168 and :186 both read '### Add documents Version 5 - Custom-Analyzer'; the second of each is the v6 recipe.
Either mislabelled header counts. A comment only about 'doc' vs '_doc' mapping-type naming without the Version 5/6 mislabel is a near-miss.
true
[]
[ "R3", "R4" ]
[ "C3", "C8", "N3", "N8" ]
null
null
null
elastic/elasticsearch
a3bac5f2d4020183019a47d8d64c08123f7ec25d
elastic__elasticsearch@a3bac5f
rest145
2
D3
PERMISSIVE warnings handler with a no-op consumer drops strict warning checks for the basic restore/mount tests
recover() in ArchiveIndexTestCase (:61) and SearchableSnapshotTestCase (:56) now sets RequestOptions with WarningsHandler.PERMISSIVE for every test, and the basic-case constructors pass a no-op consumer (`o -> {}`). ESRestTestCase builds its client with setStrictDeprecationMode(true), so before this PR any unexpected d...
incomplete-fix
low
[ { "path": "x-pack/qa/repository-old-versions-compatibility/src/javaRestTest/java/org/elasticsearch/oldrepos/archiveindex/ArchiveIndexTestCase.java", "from_line": 61, "to_line": 61, "role": "cause" }, { "path": "x-pack/qa/repository-old-versions-compatibility/src/javaRestTest/java/org/elastic...
Diff: `request.setOptions(RequestOptions.DEFAULT.toBuilder().setWarningsHandler(WarningsHandler.PERMISSIVE));` in both recover() implementations; basic constructors `this(version, indexCreatedVersion, o -> {});`; ESRestTestCase.java:1551 `builder.setStrictDeprecationMode(true);`.
Must say the basic (non-custom-analyzer) cases lose strict/unexpected-warning detection because of PERMISSIVE plus the no-op consumer. A generic request for more assertions does not count.
false
[]
[]
[ "C1", "C14", "N1", "N4", "N7", "N8" ]
null
null
null
elastic/elasticsearch
a3bac5f2d4020183019a47d8d64c08123f7ec25d
elastic__elasticsearch@902352a
rest145
2
D1
Message wire serialization still treats content as required, so a content-less message NPEs if the request is serialized over transport
The parser now accepts a Message with content == null (UnifiedCompletionRequest.java:125-130), but Message.writeTo still calls out.writeNamedWriteable(content) (line 161) and Message(StreamInput) calls in.readNamedWriteable(Content.class) (line 151). UnifiedCompletionAction.Request.writeTo serializes the whole UnifiedC...
incomplete-fix
low
[ { "path": "server/src/main/java/org/elasticsearch/inference/UnifiedCompletionRequest.java", "from_line": 161, "to_line": 161, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/inference/UnifiedCompletionRequest.java", "from_line": 151, "to_line": 151, "role": "...
UnifiedCompletionRequest.java:126 `optionalConstructorArg(),` for ParseField("content"); :151 `in.readNamedWriteable(Content.class),`; :161 `out.writeNamedWriteable(content);`. No sendRequest/reroute in x-pack/plugin/inference/.../action at head, so the path is currently not exercised.
Must say Message.writeTo / the StreamInput constructor still require content and will NPE / need optional named writeables now that content can be null. Comments only about OpenAI JSON omitting `content` (R1, C3) or about the QA mock service calling content().toString() do not count.
true
[]
[]
[ "C1", "C2", "C5", "N1", "N2", "N6" ]
null
null
null
elastic/elasticsearch
902352ac82dfa1d0b0a54ef7f0d86d6733691ba5
elastic__elasticsearch@902352a
rest145
2
D2
An explicit `"content": null` still fails to parse — only omitting the field works
The PR makes Message.content optional (UnifiedCompletionRequest.java:125-130, commit 'Allow for null/empty content field'), but only an ABSENT field is accepted. The field is declared with ObjectParser.ValueType.VALUE_ARRAY, whose supported tokens include VALUE_NULL (ObjectParser.java:762), so a JSON null passes assert...
incomplete-fix
medium
[ { "path": "server/src/main/java/org/elasticsearch/inference/UnifiedCompletionRequest.java", "from_line": 136, "to_line": 145, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/inference/UnifiedCompletionRequest.java", "from_line": 125, "to_line": 130, "role": "...
UnifiedCompletionRequest.java:125-130 `PARSER.declareField(optionalConstructorArg(), (p, c) -> parseContent(p), new ParseField("content"), ObjectParser.ValueType.VALUE_ARRAY);`; parseContent: `if (token == START_ARRAY) {...} else if (token == VALUE_STRING) {...} throw new XContentParseException("Expected an array start...
Must say an explicit null `content` value (as opposed to an omitted field) still fails parsing because parseContent does not handle VALUE_NULL. Comments about transport serialization NPE (D1), about role validation, or generic 'add tests' do not count.
false
[]
[]
[ "N2" ]
extension-2026-09-28
null
null
elastic/elasticsearch
902352ac82dfa1d0b0a54ef7f0d86d6733691ba5
elastic__elasticsearch@a9973f6
rest145
2
D1
Production checker check$java_lang_System$exit was not migrated to the new '$$' static spelling, so entitlement initialization throws (System.exit never instrumented)
With the new parser a name without '$$' is an instance check (InstrumentationServiceImpl.java:73-78) that must take (Class<?>, <object receiver>, ...) (119-133). The PR leaves the real bridge interface untouched: EntitlementChecker.java:16 still declares `check$java_lang_System$exit(Class<?> callerClass, int status)` (...
incomplete-fix
high
[ { "path": "libs/entitlement/asm-provider/src/main/java/org/elasticsearch/entitlement/instrumentation/impl/InstrumentationServiceImpl.java", "from_line": 72, "to_line": 82, "role": "cause" }, { "path": "libs/entitlement/asm-provider/src/main/java/org/elasticsearch/entitlement/instrumentation/...
InstrumentationServiceImpl.java:73 `int classNameEndIndex = checkerMethodName.lastIndexOf("$$");` :75-76 `if (classNameEndIndex == -1) { targetMethodIsStatic = false;`; :119-121 `checkerMethodArgumentTypes.length < 2 || ... || checkerMethodArgumentTypes[1].getSort() != Type.OBJECT` -> throw. Head EntitlementChecker.jav...
Must say the existing production check method(s) (System.exit) still use the old single-'$' static spelling and are now parsed as instance methods, failing initialization or never matching. Parser edge-case comments (no '$', empty method name) do not count.
true
[]
[]
[ "C2", "C4", "C6", "N1", "N3", "N5", "N6" ]
null
null
null
elastic/elasticsearch
a9973f67256e21340a8b00039531e69b724d0856
elastic__elasticsearch@a9973f6
rest145
2
D2
Invalid-name error message still documents the old (now reversed) convention
The IllegalArgumentException text (InstrumentationServiceImpl.java:86-93) still says `check$$methodName (instance)` and `check$package_ClassName$methodName (static)`, which the new parser respectively rejects (missing class) and treats as an instance method - steering checker authors into the D1 mistake.
maintainability
low
[ { "path": "libs/entitlement/asm-provider/src/main/java/org/elasticsearch/entitlement/instrumentation/impl/InstrumentationServiceImpl.java", "from_line": 86, "to_line": 93, "role": "cause" } ]
InstrumentationServiceImpl.java:90 `"It should be either check$$methodName (instance), check$package_ClassName$methodName (static) or "` vs :73-82 ('$$' => static) and :101-103 (blank class rejected).
Count a comment that the error message / format description is outdated or contradicts the new naming rules (including the nit inside C6).
true
[]
[ "R3" ]
[ "C1", "N1" ]
null
null
null
elastic/elasticsearch
a9973f67256e21340a8b00039531e69b724d0856
elastic__elasticsearch@a9973f6
rest145
2
D3
testParseCheckerMethodSignatureStaticMethodIncorrectArgumentCount no longer exercises the static branch
The test (InstrumentationServiceImplTests.java:236) still uses `check$ClassName$staticMethod`, which under the new convention is an instance name; with no arguments it hits the instance validation error, which also contains the asserted substring 'It must have a first argument of Class<?> type', so it passes while the ...
incomplete-fix
low
[ { "path": "libs/entitlement/asm-provider/src/test/java/org/elasticsearch/entitlement/instrumentation/impl/InstrumentationServiceImplTests.java", "from_line": 235, "to_line": 237, "role": "cause" } ]
Tests.java:236 `assertParseCheckerMethodSignatureThrows("It must have a first argument of Class<?> type", "check$ClassName$staticMethod");`; InstrumentationServiceImpl.java:123-126 instance message `"It must have a first argument of Class<?> type, and a second argument ..."`.
Counts: the static-arg-count test still uses a single-'$' name so it goes through the instance branch. C8 names the same cause but wrongly claims the test fails (it passes via the shared substring).
false
[]
[]
[ "C3", "C8" ]
null
null
null
elastic/elasticsearch
a9973f67256e21340a8b00039531e69b724d0856
elastic__elasticsearch@4d9b96f
rest145
2
D1
Skipping checks for non-default filesystems lets a component read/modify protected host files through a zip filesystem
checkFileRead/checkFileWrite now return immediately for any Path whose FileSystem class is not the default one (PolicyManager.java:311-325, 328-330, 357-359). A zip/jar FileSystem is backed by a host file, and opening it is not entitlement-checked on that archive: only the default provider's newFileSystem is instrument...
security
medium
[ { "path": "libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/PolicyManager.java", "from_line": 311, "to_line": 325, "role": "cause" }, { "path": "libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/PolicyManager.java", "from_line": 327, ...
PolicyManager.java:313 if (path.getFileSystem().getClass() != DEFAULT_FILESYSTEM_CLASS) { ... return false; } and checkFileRead: if (isPathOnDefaultFilesystem(path) == false) { return; }; EntitlementInitialization.fileSystemProviderChecks instruments only FileSystems.getDefault().provider().getClass(); ElasticsearchEnt...
Must say that non-default filesystems such as zipfs can be backed by protected host files, so exempting them lets a component reach (read/write) protected data. A comment only asking whether class vs instance comparison is intended (C4/C7), or claiming a plugin-defined delegating filesystem bypasses checks (C3, blocked...
false
[]
[]
[ "C5", "N1", "N3" ]
null
null
null
elastic/elasticsearch
4d9b96f4ac1af0cb871f1d3b77169f9f1e83d194
elastic__elasticsearch@a6a4623
rest145
2
D1
testInvalidMaxAnalyzedOffset still draws from [-100, 0], which now includes the valid -1 and 0: random test failures
Validation now rejects only values < -1 (AbstractHighlighterBuilder.java:568), but HighlightBuilderTests.testInvalidMaxAnalyzedOffset (HighlightBuilderTests.java:578-584) still builds its 'invalid' input from randomIntBetween(-100, 0). When -1 or 0 is drawn (2 in 101 runs) parsing succeeds, expectParseThrows fails and ...
build
medium
[ { "path": "server/src/test/java/org/elasticsearch/search/fetch/subphase/highlight/HighlightBuilderTests.java", "from_line": 578, "to_line": 584, "role": "symptom" }, { "path": "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/AbstractHighlighterBuilder.java", "from_...
HighlightBuilderTests.java:580 "{ \"max_analyzed_offset\" : " + randomIntBetween(-100, 0) + "}"; AbstractHighlighterBuilder.java:568 if (maxAnalyzedOffset != null && maxAnalyzedOffset < -1) {
Must say the random range in testInvalidMaxAnalyzedOffset now includes valid values (-1 and/or 0) so the test fails intermittently. A comment only about the message text does not count.
true
[]
[]
[ "C7", "C8", "C9", "N2", "N3", "N5" ]
null
null
null
elastic/elasticsearch
a6a4623f4a0216b515a8cb323110305504431459
elastic__elasticsearch@a6a4623
rest145
2
D2
No transport-version gate for the new -1 value: older nodes in a mixed cluster reject it when deserializing
maxAnalyzedOffset is still serialized as a plain optional int (AbstractHighlighterBuilder.java:212 writeOptionalInt) with no TransportVersion check, and readFrom runs it through the setter (line 168 maxAnalyzedOffset(in.readOptionalInt())). During a rolling upgrade, a -1 accepted by an upgraded coordinating node is sen...
compat
medium
[ { "path": "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/AbstractHighlighterBuilder.java", "from_line": 208, "to_line": 213, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/AbstractHighlighterBuilder.java", "fr...
AbstractHighlighterBuilder.java:212 out.writeOptionalInt(maxAnalyzedOffset); :168 maxAnalyzedOffset(in.readOptionalInt()); base setter: if (maxAnalyzedOffset != null && maxAnalyzedOffset <= 0) throw new IllegalArgumentException("... must be a positive integer").
Must identify the rolling-upgrade / mixed-cluster serialization problem with sending -1 to nodes that do not understand it. Generic 'add BWC tests' does not count.
true
[]
[]
[ "N2", "N4", "N6" ]
null
null
null
elastic/elasticsearch
a6a4623f4a0216b515a8cb323110305504431459
elastic__elasticsearch@a6a4623
rest145
2
D3
YAML REST test asserts the new error message but is gated only on 7.12.0, failing in mixed-version runs
30_max_analyzed_offset.yml:118-133 now expects `[max_analyzed_offset] must be an integer >= -1`, but its requires block is still cluster_features gte_v7.12.0. When the YAML suite runs against a mixed or older cluster, a node without this change answers `must be a positive integer` and the match fails; a new cluster fea...
build
low
[ { "path": "rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.highlight/30_max_analyzed_offset.yml", "from_line": 118, "to_line": 133, "role": "cause" } ]
yml: requires: cluster_features: ["gte_v7.12.0"] ... - match: { error.caused_by.reason: "[max_analyzed_offset] must be an integer >= -1" }
Must say the changed error-message assertion needs a new version/feature gate (or tolerate the old message) for mixed-version/BWC test runs.
true
[]
[]
[ "C4", "N2" ]
null
null
null
elastic/elasticsearch
a6a4623f4a0216b515a8cb323110305504431459
elastic__elasticsearch@a6a4623
rest145
2
D4
Relaxed validation newly accepts 0, and the javadoc/docs contradict the -1-only rule
Before, max_analyzed_offset <= 0 was rejected; the new check (AbstractHighlighterBuilder.java:568) also accepts 0, which QueryMaxAnalyzedOffset.create keeps as 0, giving LimitTokenOffsetAnalyzer(..., 0): silently no highlights where a 400 was returned before. The new javadoc (line 564) says 'a negative int' means use t...
contract
low
[ { "path": "server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/AbstractHighlighterBuilder.java", "from_line": 563, "to_line": 571, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/lucene/search/uhighlight/QueryMaxAnalyzedOffset.java", "from_line": 2...
AbstractHighlighterBuilder.java:564 "maxAnalyzedOffset" might be non-negative int, null (unknown), or a negative int (defaulting to index analyzed offset).; :568 maxAnalyzedOffset < -1.
Must note that 0 is now accepted, or that the javadoc says any negative value while only -1 is valid. One facet suffices. A pure request to document -1 in the reference docs, with no contradiction named, is not enough.
true
[]
[ "R4" ]
[ "C5", "C6", "C3", "N2" ]
null
null
null
elastic/elasticsearch
a6a4623f4a0216b515a8cb323110305504431459
elastic__elasticsearch@10d682d
rest145
2
D1
HttpCertificateCommandTests is flaky: an empty random CA key-usage subset makes the wizard use the default while the test expects no bits
In the 'change CA defaults' branch the test sets caKeyUsage = randomSubsetOf(KEY_USAGE_MAPPINGS.keySet()) (HttpCertificateCommandTests.java:383); randomSubsetOf picks a size in [0, 9], so the subset is empty ~1 in 10 times and the test types an empty line. HttpCertificateCommand.tryReadInput (HttpCertificateCommand.jav...
build
medium
[ { "path": "x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTests.java", "from_line": 383, "to_line": 383, "role": "cause" }, { "path": "x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/HttpCertificateCommandTest...
HttpCertificateCommandTests.java:383 `caKeyUsage = randomSubsetOf(CertGenUtils.KEY_USAGE_MAPPINGS.keySet());` then `terminal.addTextInput(Strings.collectionToCommaDelimitedString(caKeyUsage));` (empty string for an empty subset). HttpCertificateCommand.java:1178 `if (Strings.isEmpty(input)) { return defaultValue; }` wi...
Must say the random subset can be empty and empty input yields the default key usage, so the assertion fails (flaky test). Suggesting randomNonEmptySubsetOf is the fix. Comments only about duplicates, trailing commas or separator-only input in readKeyUsage do not count.
true
[]
[]
[ "C13", "C15", "N1", "N2" ]
null
null
null
elastic/elasticsearch
10d682d9aa4b1c2976e1db769ba04cb15256da9e
elastic__elasticsearch@e38d20c
rest145
2
D1
Async-search logging tests assert the logs immediately after a 0ms-timeout submit, so they race the shard execution (flaky seen tests, vacuous unseen test)
In the three new AsyncSearchErrorTraceIT logging tests, the polling loop waits for the FIRST submission to finish before MockLog capture starts; inside the capture a SECOND submission is sent with wait_for_completion_timeout=0ms (AsyncSearchErrorTraceIT.java:180, 214, 248) and mockLog.assertAllExpectationsMatched() run...
concurrency
medium
[ { "path": "x-pack/plugin/async-search/src/internalClusterTest/java/org/elasticsearch/xpack/search/AsyncSearchErrorTraceIT.java", "from_line": 178, "to_line": 182, "role": "cause" }, { "path": "x-pack/plugin/async-search/src/internalClusterTest/java/org/elasticsearch/xpack/search/AsyncSearchE...
AsyncSearchErrorTraceIT.java:160-181: first submit with `wait_for_completion_timeout=0ms`, loop `while (responseEntity.get("is_running") ... isRunning)` polls it; then `try (var mockLog = MockLog.capture(SearchService.class)) { ErrorTraceHelper.addSeenLoggingExpectations(...); getRestClient().performRequest(searchReque...
Must say the captured (second) async submit uses wait_for_completion_timeout=0ms / is not waited on before asserting the logs, making the logging assertions racy/flaky or vacuous. Comments only about the polling loop being unbounded do not count.
false
[]
[]
[ "C2", "C5", "C13", "N1", "N2", "N3", "N4", "N6" ]
null
null
null
elastic/elasticsearch
e38d20c726cffb1ef9563d3146951a5356596464
elastic__elasticsearch@e38d20c
rest145
2
D2
Scroll (and legacy-context query-by-id) phases now decide stack-trace clearing from the stored original request's channel version, not the current channel
Previously the scroll and QuerySearchRequest handlers passed channel.getVersion() of the channel carrying THIS request. Now executeQueryPhase(InternalScrollSearchRequest) uses readerContext.getShardSearchRequest(null) (SearchService.java:865-866), which for LegacyReaderContext returns the ShardSearchRequest stored when...
compat
low
[ { "path": "server/src/main/java/org/elasticsearch/search/SearchService.java", "from_line": 865, "to_line": 866, "role": "cause" }, { "path": "server/src/main/java/org/elasticsearch/search/SearchService.java", "from_line": 552, "to_line": 552, "role": "symptom" }, { "path"...
LegacyReaderContext.java:74-76 `getShardSearchRequest(ShardSearchRequest other) { return shardSearchRequest; }`. SearchService.java:865-866 `final ShardSearchRequest shardSearchRequest = readerContext.getShardSearchRequest(null); listener = maybeWrapListenerForStackTrace(listener, shardSearchRequest, ...)`. SearchServi...
Must say the scroll path now uses the version of the stored/original shard request (from LegacyReaderContext) instead of the current channel's version, affecting the error_trace compatibility decision in mixed-version clusters. Only matters in rolling upgrades and only affects diagnostics, hence low.
false
[]
[]
[ "C6", "C8", "C10", "C12", "N1", "N5", "N7" ]
null
null
null
elastic/elasticsearch
e38d20c726cffb1ef9563d3146951a5356596464
elastic__elasticsearch@e38d20c
rest145
2
D3
Tests set the SearchService logger to DEBUG globally and never restore it
SearchErrorTraceIT.java:47-50 and AsyncSearchErrorTraceIT.java:48-51 call Configurator.setLevel("org.elasticsearch.search.SearchService", Level.DEBUG) in @BeforeClass, and SearchServiceTests.java:186 does so inside a test, with no teardown. MockLog.close() only removes its appender and ESTestCase.restoreLoggingLevel on...
maintainability
low
[ { "path": "qa/smoke-test-http/src/internalClusterTest/java/org/elasticsearch/http/SearchErrorTraceIT.java", "from_line": 47, "to_line": 50, "role": "cause" }, { "path": "x-pack/plugin/async-search/src/internalClusterTest/java/org/elasticsearch/xpack/search/AsyncSearchErrorTraceIT.java", ...
SearchErrorTraceIT.java:47-50 `@BeforeClass public static void setDebugLogLevel() { Configurator.setLevel("org.elasticsearch.search.SearchService", Level.DEBUG); }` (no @AfterClass). ESTestCase.java:587-594 restoreLoggingLevel restores only `LoggerFactory.provider().setRootLevel(capturedLogLevel)`. The idiomatic @TestL...
Must say the SearchService log level change is not restored/leaks to later tests. Low: consequence is extra logging and order-dependence, not a failure.
false
[]
[]
[ "C1", "C9", "C14", "C15", "C17", "N1" ]
null
null
null
elastic/elasticsearch
e38d20c726cffb1ef9563d3146951a5356596464
ollama__ollama@af112d6
rest145
2
D1
Handler validates before cleaning, so './model.safetensors' and 'nested/../model.safetensors' get HTTP 400 despite the PR's stated contract and its own converter tests
CreateHandler runs validRelative on the raw key before cleaning it (server/create.go:50-57), and validRelative rejects any path starting with './' and any '/../' segment (create.go:161-188). The PR body promises to 'properly handle relative paths (like ./model.safetensors)', and TestConvertFromSafetensors (create_test....
contract
low
[ { "path": "server/create.go", "from_line": 50, "to_line": 57, "role": "cause" }, { "path": "server/create.go", "from_line": 161, "to_line": 188, "role": "other-site" }, { "path": "server/create_test.go", "from_line": 84, "to_line": 93, "role": "symptom" } ]
create.go:51-56 `for k, v := range r.Files { if err := validRelative(k); err != nil { c.AbortWithStatusJSON(http.StatusBadRequest, ...); return }; files[filepath.Clean(k)] = v }`; create.go:172 `if strings.HasPrefix(path, "./") || strings.HasPrefix(path, "../")`; create_test.go `name: "ValidRelativeWithDot", filePath: ...
Must say validation precedes cleaning / validRelative rejects contained dot-paths like './model.safetensors' that the PR says (and converter tests expect) are valid. The CLI sends base names, so only API callers are affected.
true
[]
[ "R1" ]
[ "C4", "C12", "C8", "N8" ]
null
null
null
ollama/ollama
af112d6365207a5a3f65136c7057d6bb98203c35
ollama__ollama@af112d6
rest145
2
D2
Nested file keys pass validRelative but fail the O_CREATE containment probe because parent directories do not exist yet
validRelative accepts nested keys such as 'dir/file.txt', but convertFromSafetensors now calls root.OpenFile(fp, O_CREATE|O_WRONLY) (create.go:277) before createLink, and OpenFile does not create intermediate directories; for 'weights/model.safetensors' it fails with ENOENT and is reported as errFilePath 'file path mus...
bug
low
[ { "path": "server/create.go", "from_line": 272, "to_line": 281, "role": "cause" }, { "path": "server/create.go", "from_line": 98, "to_line": 106, "role": "symptom" } ]
create.go:277 `f, err := root.OpenFile(fp, os.O_CREATE|os.O_WRONLY, 0o644)` then `return nil, fmt.Errorf("%w: invalid path %s: %v", errFilePath, fp, err)`; createLink performs `os.MkdirAll(filepath.Dir(dst), 0o755)` only afterwards.
Must identify that the O_CREATE probe fails for keys in subdirectories (missing parent). A comment only saying O_CREATE has a file-creation side effect (R5) without the nested-path failure does not count.
true
[]
[]
[ "C2", "C15", "C16", "C3", "C9", "N1", "N2", "N4", "N5" ]
null
null
null
ollama/ollama
af112d6365207a5a3f65136c7057d6bb98203c35
ollama__ollama@af112d6
rest145
2
D3
Unconditional map allocation turns an omitted 'files' into an empty map, making errNeitherFromOrFiles unreachable
CreateHandler now always does `files := make(map[string]string, len(r.Files)); ...; r.Files = files` (create.go:50-58), so a request with neither 'from' nor 'files' has a non-nil empty r.Files. The later `else if r.Files != nil` branch (create.go:98) is then taken, detectModelTypeFromFiles returns "" for the empty map ...
bug
low
[ { "path": "server/create.go", "from_line": 50, "to_line": 58, "role": "cause" }, { "path": "server/create.go", "from_line": 98, "to_line": 111, "role": "symptom" } ]
create.go:50 `files := make(map[string]string, len(r.Files))`, :58 `r.Files = files`; :98 `} else if r.Files != nil {`; :110 `ch <- gin.H{"error": errNeitherFromOrFiles.Error(), ...}`; convertModelFromFiles default case `return nil, errUnknownType`.
Must say r.Files becomes non-nil when omitted so the neither-from-nor-files error is replaced by 'unknown type'. Status stays 400; only the message/branch changes.
false
[]
[]
[ "C5", "C6", "C13", "N6", "N7" ]
null
null
null
ollama/ollama
af112d6365207a5a3f65136c7057d6bb98203c35
ollama__ollama@498792c
rest145
2
D1
Soft-timeout skip compares time since package init against a per-test remaining-time budget, so later model-arch subtests (the embed suite) skip early
getTimeouts (integration/model_arch_test.go:49-57) returns softTimeout as the time remaining from the moment the test calls it until deadline-2m. Each subtest then skips when `time.Now().Sub(started) > softTimeout` (lines 82, 135), where `started` is a package-level var set at package load (line 20). Elapsed-since-pack...
bug
medium
[ { "path": "integration/model_arch_test.go", "from_line": 82, "to_line": 82, "role": "cause" }, { "path": "integration/model_arch_test.go", "from_line": 135, "to_line": 135, "role": "cause" }, { "path": "integration/model_arch_test.go", "from_line": 20, "to_line": ...
model_arch_test.go:20 `started = time.Now()`; :57 `return -time.Since(deadline.Add(-2 * time.Minute)), ...` (= deadline-2m-now, a remaining duration computed when each Test* starts); :82/:135 `if time.Now().Sub(started) > softTimeout { t.Skip("skipping remaining tests to avoid excessive runtime") }`.
Must say the skip uses the package-global `started` (package age / time used by earlier tests) against a softTimeout that is already a per-test remaining budget, so subtests (especially embed ones) skip too early. A comment only about getTimeouts readability or named returns (R1) does not count.
true
[]
[]
[ "C5", "C6", "N2", "N3" ]
null
null
null
ollama/ollama
498792c9be023ebfdaa1e0dbc6ac85c0ff8c75b1
ollama__ollama@498792c
rest145
2
D2
New TestAPIEmbeddings still uses orca-mini despite the PR's switch to llama3.2:1b
The PR switches the integration suite from orca-mini to llama3.2:1b and rewrites every other default-model occurrence, but the newly added TestAPIEmbeddings (integration/api_test.go:408) hard-codes `Model: "orca-mini"` and pulls it (line 416), so a clean run still downloads the old, larger model just for this test.
incomplete-fix
low
[ { "path": "integration/api_test.go", "from_line": 407, "to_line": 409, "role": "cause" } ]
api_test.go:408 `Model: "orca-mini",`; :416 `PullIfMissing(ctx, client, req.Model)`; all other default-model uses (basic_test, llm_test, max_queue_test, concurrency_test, utils_test, api_test generate/chat/list) now say "llama3.2:1b".
Must point at the leftover orca-mini in the new embeddings test. orca-mini:latest in the chatModels arch list is intentional and does not count.
true
[]
[]
[ "C8", "C13" ]
null
null
null
ollama/ollama
498792c9be023ebfdaa1e0dbc6ac85c0ff8c75b1
ollama__ollama@498792c
rest145
2
D3
TestAPIChat reports a missing created_at as 'missing total_duration'
In TestAPIChat the final-response check `if response.CreatedAt == nilTime` (integration/api_test.go:224) emits `final response missing total_duration`, the message of the real TotalDuration check at line 230-231, so a created_at regression is misreported as a total_duration failure.
maintainability
low
[ { "path": "integration/api_test.go", "from_line": 223, "to_line": 226, "role": "cause" } ]
api_test.go:224-225 `if response.CreatedAt == nilTime { t.Errorf("final response missing total_duration: %#v", response)`; :230-231 `if response.Metrics.TotalDuration == 0 { t.Errorf("final response missing total_duration: ...`.
Must name the wrong diagnostic on the CreatedAt check.
true
[]
[]
[ "C10" ]
null
null
null
ollama/ollama
498792c9be023ebfdaa1e0dbc6ac85c0ff8c75b1
ollama__ollama@498792c
rest145
2
D4
TestAPIListModels runs PullIfMissing under a 10-second context, so it fails on a cold runner
TestAPIListModels creates a 10s context (integration/api_test.go:297) and passes it to PullIfMissing(ctx, client, "llama3.2:1b") (line 303), which streams a registry pull under that ctx. When the model is not already present (the test run alone, e.g. `-run TestAPIListModels`, on a fresh install) a ~1.3GB download canno...
bug
low
[ { "path": "integration/api_test.go", "from_line": 297, "to_line": 305, "role": "cause" } ]
api_test.go:297 `ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)`; :303 `if err := PullIfMissing(ctx, client, "llama3.2:1b"); err != nil { t.Fatalf("pull failed %s", err)`; utils_test.go:178 `pullError = client.Pull(ctx, pullReq, fn)` uses the caller's ctx. Other tests give pulls 1-15 minutes.
Must say the 10s context also bounds the model pull in the list-models test so a cold pull fails. Line numbers in reviews may be off (C4 cites 275/281).
false
[]
[]
[ "C3", "C4", "N1", "N6", "N8", "N3" ]
null
null
null
ollama/ollama
498792c9be023ebfdaa1e0dbc6ac85c0ff8c75b1
ollama__ollama@0b52f18
rest145
2
D1
Progress truncation renders the OLDEST states, hiding active and final status lines once there are more states than terminal rows
progress.go:118 renders `for i := range min(len(p.states), termHeight-1)`, i.e. the first termHeight-1 states. States are append-only (Add, progress.go:86-91) and chronological: 'gathering model components', one 'copying file' spinner per blob (now all added at once by the parallel uploads), then the server-side status...
bug
medium
[ { "path": "progress/progress.go", "from_line": 117, "to_line": 125, "role": "cause" }, { "path": "cmd/cmd.go", "from_line": 161, "to_line": 178, "role": "symptom" } ]
progress.go:118 `for i := range min(len(p.states), termHeight-1) { fmt.Fprint(p.w, p.states[i].String(), "\033[K")` iterates from index 0; Add: `p.states = append(p.states, state)`. cmd.go adds createBlob spinners (createBlob: `p.Add(status, spinner)`) before client.Create's fn adds bars/spinners.
Must say the truncation hides progress lines: either that it keeps the first/oldest rather than the latest/active states, or that states beyond the terminal height are no longer shown (R3 framing counts). Comments only about p.pos/cursor movement exceeding the rendered rows (C1/C3/C6) or the trailing newline (C7) do no...
true
[]
[ "R3" ]
[ "C8", "N1", "N3", "N6", "N4" ]
null
null
null
ollama/ollama
0b52f186fb4af8fa7d4f6a71967f922eb6b69cdc
ollama__ollama@2ed14f2
rest145
2
D1
Chunksums fetch/parse errors and Chunked open errors are swallowed: Pull succeeds and links a manifest with a missing or incomplete layer
In Registry.Pull, an error from c.Chunked (server/internal/client/ollama/registry.go:477-481) is handled with `t.update(l, 0, err); continue`, and an error yielded by r.chunksums (non-200 status, request error, scanner error, bad digest/range; registry.go:485-489) with `t.update(l, progress.Load(), err); break`. Neithe...
bug
high
[ { "path": "server/internal/client/ollama/registry.go", "from_line": 485, "to_line": 489, "role": "cause" }, { "path": "server/internal/client/ollama/registry.go", "from_line": 477, "to_line": 481, "role": "cause" }, { "path": "server/internal/client/ollama/registry.go", ...
registry.go:486-489 `if err != nil { t.update(l, progress.Load(), err); break }`; 478-481 `if err != nil { t.update(l, 0, err); continue }`; afterwards `if err := g.Wait(); err != nil { return err }` then `blob.PutBytes(c, md, m.Data)` and `return c.Link(m.Name, md)`. chunksums (740-810) yields errors for non-200, send...
Must say that a chunksums (or Chunked/open) error does not fail Pull — break/continue without returning the error — so the model is committed/reported successful with a missing layer. Comments only about error message wording (R15) or Content-Location validation (R14) do not count.
true
[]
[]
[ "C19", "C20", "C30", "C43", "C44", "N5", "N11", "N12", "N18", "N19", "N30" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D2
Chunks are written in place at the final blob path; an interrupted pull leaves a full-size file with holes that later pulls accept as cached by size alone
DiskCache.Chunked (server/internal/cache/blob/chunked.go:26-36) opens the final content-addressed path c.GetFile(d) and Put writes each chunk concurrently at its offset (io.NewOffsetWriter, line 53); a failed chunk leaves its partial bytes (no truncate, unlike copyNamedFile). Because chunks finish out of order, a compl...
data
high
[ { "path": "server/internal/cache/blob/chunked.go", "from_line": 26, "to_line": 36, "role": "cause" }, { "path": "server/internal/cache/blob/chunked.go", "from_line": 56, "to_line": 60, "role": "other-site" }, { "path": "server/internal/client/ollama/registry.go", "fro...
chunked.go:27-32 `name := c.GetFile(d); info, err := os.Stat(name); if err == nil && info.Size() == size { return &Chunker{}, nil }; f, err := os.OpenFile(name, os.O_CREATE|os.O_WRONLY, 0o666)`; Put 44-46 `if c.f == nil { return nil }`; cache.go Get returns Size from os.Stat; registry.go:449-450 `info, err := c.Get(l.D...
Must identify that partially downloaded data lives at the final blob path and a size-only check (exists or Chunked pre-validation) will then treat an incomplete/interrupted blob as complete. The oversized-existing-file / missing O_TRUNC claim (R3, C17, C28) is a different, contrived scenario and does not count.
true
[]
[]
[ "C1", "C16", "C26", "C46", "N12", "N22" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D3
Blob GETs no longer carry the registry auth token/User-Agent: authenticated pulls of small layers from the registry fail
The chunk download in Pull builds its request with plain http.NewRequestWithContext (registry.go:499) instead of r.newRequest, which the base used for every blob request and which sets the `Authorization: Bearer <signed token>` and User-Agent headers (registry.go:824-839). For layers below the chunking threshold, cs.UR...
bug
medium
[ { "path": "server/internal/client/ollama/registry.go", "from_line": 499, "to_line": 504, "role": "cause" }, { "path": "server/internal/client/ollama/registry.go", "from_line": 717, "to_line": 727, "role": "other-site" } ]
head registry.go:499 `req, err := http.NewRequestWithContext(ctx, "GET", cs.URL, nil)` then `sendRequest(r.client(), req)`; base Pull: `req, err := r.newRequest(ctx, "GET", blobURL, nil)`; newRequest: `if r.Key != nil { token, err := makeAuthToken(r.Key) ... req.Header.Set("Authorization", "Bearer "+token) }`. chunksum...
Must say blob/chunk requests bypass newRequest and so lose the Authorization (key-signed) header, breaking authenticated/private pulls. Severity medium because the path is behind the client2 experiment.
false
[]
[]
[ "C5", "C10", "C23", "N14", "N23", "N29" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D4
Whole-layer digest and chunk coverage are never verified: a chunksums list with gaps/out-of-range chunks commits a blob that does not match its digest
The old path wrote each blob through copyNamedFile/checkWriter, which hashed the whole layer against l.Digest. Now each Chunker.Put verifies only the chunk hash supplied by the chunksums response (chunked.go:48-56), and nothing checks that the yielded ranges cover [0, l.Size) exactly, are within bounds, or that the ass...
data
medium
[ { "path": "server/internal/client/ollama/registry.go", "from_line": 797, "to_line": 808, "role": "cause" }, { "path": "server/internal/cache/blob/chunked.go", "from_line": 43, "to_line": 61, "role": "cause" }, { "path": "server/internal/client/ollama/registry.go", "fr...
chunked.go Put: `cw := &checkWriter{d: d, size: chunk.Size(), ... w: io.NewOffsetWriter(c.f, chunk.Start)}` with d the per-chunk digest; no Close/commit step verifies l.Digest (Close is just `c.f.Close()`); chunksums loop yields every parsed (digest, range) with URL blobURL and no bounds/coverage bookkeeping; Pull link...
Must say that per-chunk verification does not establish the layer digest / complete coverage (gaps, truncation, out-of-range chunks) and that Pull commits without a final whole-blob or coverage check. Swallowed chunksums errors are D1; interrupted-pull size-only cache hits are D2.
false
[]
[]
[ "C24", "C34", "C38", "C39", "C42", "N4", "N7", "N9" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D5
Streaming /api/pull (client2) never sends a terminal "success" status and emits empty-status progress lines
handlePull's streaming path (server/internal/registry/server.go:314-328) on completion calls pushUpdate() and encodes an error status only when err != nil; on success it returns without the `{"status":"success"}` line the base sent (and the non-streaming path at 264 still sends). Progress lines now have Status "". Clie...
contract
medium
[ { "path": "server/internal/registry/server.go", "from_line": 316, "to_line": 327, "role": "cause" } ]
server.go:316-327 `case err := <-done: pushUpdate(); if err != nil { ... enc.Encode(progressUpdateJSON{Status: status}) }; return nil`. Base encoded "verifying layers", "writing manifest", "success" after a successful pull.
Must say the successful streamed pull no longer ends with a success status. Repurposing Digest for the model name alone (R19, C6, C7) is a different, intentional change and does not count.
true
[]
[ "R20" ]
[ "C17", "C18", "C22", "C35", "N2", "N15", "N28" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D6
CLI pull bar label shows the untruncated 64-hex digest on the default server, overflowing the progress line
cmd/cmd.go:800-801 replaced `resp.Digest[7:19]` with `strings.TrimPrefix(resp.Digest, "sha256:")` with no truncation (to fit client2's model-name Digest). The default (legacy) server still sends `sha256:<64 hex>` layer digests, so every normal `ollama pull` renders 'pulling <64 hex>...'; progress.Bar.String does not ca...
bug
medium
[ { "path": "cmd/cmd.go", "from_line": 800, "to_line": 801, "role": "cause" } ]
cmd.go:800 `digest := strings.TrimPrefix(resp.Digest, "sha256:")`; 801 `progress.NewBar(fmt.Sprintf("pulling %s...", digest), resp.Total, 0)`; progress/bar.go NewBar sets messageWidth -1 and String only truncates when messageWidth > 0; `f := termWidth - pre.Len() - suf.Len() - 5`.
Must note that the 12-char truncation of normal sha256 digests was lost (long labels). The hardcoded initial value 0 (R2) is a separate claim and does not count.
true
[]
[ "R1" ]
[ "C32" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D7
Streamed pull sends nothing until the first downloaded byte (initial 'pulling manifest' status dropped)
The base handler immediately wrote `{"status":"pulling manifest"}`. The new handler starts its ticker at one hour (server/internal/registry/server.go:280) and only resets it to 100ms once a trace update reports n > 0 (287-289); Pull's initial per-layer updates use n=0, and manifest resolution and the chunksums fetch pr...
bug
low
[ { "path": "server/internal/registry/server.go", "from_line": 280, "to_line": 290, "role": "cause" } ]
server.go:280 `t := time.NewTicker(time.Hour) // "unstarted" timer`; 281 `start := sync.OnceFunc(func() { t.Reset(100 * time.Millisecond) })`; 287 `if n > 0 { start() }`; registry.go Pull calls `t.update(l, 0, nil)` first. Base: `enc.Encode(progressUpdateJSON{Status: "pulling manifest"})` before starting.
Must say the stream stays silent until positive byte progress (no initial status / ticker not started). Claims that final updates are missed on completion are wrong (the done branch always pushes an update).
false
[]
[ "R18" ]
[ "C3", "C12", "C45" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
ollama__ollama@2ed14f2
rest145
2
D8
Chunked-pull test skipped with 'TODO: BRING BACK BEFORE LANDING'; MaxChunkSize knob and Pull/trackingReader docs left stale
registry_test.go:535 skips TestRegistryPullChunking — the only test of the large-layer path — with a message saying it must be restored before landing. Registry.MaxChunkSize (registry.go:216-220) is still exported and documented against the deleted DefaultMaxChunkSize but is read nowhere; the Pull doc (430-433) still p...
maintainability
low
[ { "path": "server/internal/client/ollama/registry_test.go", "from_line": 535, "to_line": 535, "role": "cause" }, { "path": "server/internal/client/ollama/registry.go", "from_line": 216, "to_line": 220, "role": "other-site" }, { "path": "server/internal/client/ollama/regis...
`t.Skip("TODO: BRING BACK BEFORE LANDING")`; git grep shows MaxChunkSize only in the field decl, Pull doc and the skipped test; trackingReader has fields r, n only.
Counts if a review flags the skipped chunking test, the dead MaxChunkSize knob, the stale Pull doc, or the wrong trackingReader comment. The then/than typo alone (R9) does not count.
true
[]
[]
[ "C4", "C6", "C9", "C13", "C41", "N21" ]
null
null
null
ollama/ollama
2ed14f2a28867c017426b41a9ff6bfc52c981a43
mpv-player__mpv@0b0330f
rest145
2
D1
mp_add_external_file now overwrites the demuxer's forced flag, so forced tracks inside external files lose it
add_stream_track initialises track->forced_track from the demuxer stream (player/loadfile.c:416, `.forced_track = stream->forced_track`), which demux_mkv/demux_lavf set from the container's forced flag/disposition. The PR adds the unconditional `t->forced_track = flags & TRACK_FORCED;` in mp_add_external_file (loadfile...
bug
medium
[ { "path": "player/loadfile.c", "from_line": 920, "to_line": 920, "role": "cause" }, { "path": "player/loadfile.c", "from_line": 416, "to_line": 416, "role": "other-site" }, { "path": "player/loadfile.c", "from_line": 599, "to_line": 605, "role": "symptom" } ...
head loadfile.c:920 `t->forced_track = flags & TRACK_FORCED;`; base loadfile.c only sets forced_track at :416 from `stream->forced_track`; selection reads it at :486, :489-490, :599, :605.
Must say the new assignment clobbers the forced flag coming from the external file's container/demuxer (should OR / only set when given). A comment only about hearing/visual-impaired assignments (same pre-existing shape) does not count; R3's uninitialised-field claim is different.
true
[]
[]
[ "C2", "C10", "C12", "N2", "N3", "N11" ]
null
null
null
mpv-player/mpv
0b0330fa9d5d70c78f36e1010a3b826fa7046387
mpv-player__mpv@0b0330f
rest145
2
D2
Filenames with both an SDH/HI tag and a forced tag misparse: the second tag becomes the language
The single checked_tag flag (misc/language.c:332, 340-341) strips exactly one tag. For 'movie.en.sdh.forced.srt' the loop strips 'forced' (sets *forced, continue), then reads 'sdh' as a 3-letter token; checked_tag is already true so it is not tested as a tag and passes the primary-subtag check, returning language 'sdh'...
bug
low
[ { "path": "misc/language.c", "from_line": 332, "to_line": 358, "role": "cause" } ]
language.c:340 `if (i >= 0 && lang_length >= 2 && !checked_tag && name.start[i] == delimiter) { checked_tag = true; ...`; :353-357 `if (*hi || *f) { lang_length = 0; ...; continue; }`; the next token is never re-checked as a tag and reaches the 2-3 letter primary-subtag check at :373-376.
Must say combining both tags misparses (second tag taken as the language, or the other tag not detected). The PR body says both tags at once are intentionally unsupported, so merely asking to support both without the misparse is a near-miss; a pure request for tests (R4) does not count.
true
[]
[ "R1", "R2" ]
[ "C8", "N6", "N10" ]
null
null
null
mpv-player/mpv
0b0330fa9d5d70c78f36e1010a3b826fa7046387
mpv-player__mpv@0b0330f
rest145
2
D3
sub-reload clears an explicitly supplied forced flag for language-less tracks
cmd_track_reload carries t->forced_track into flags as TRACK_FORCED (player/command.c:6308) so mp_add_external_file restores it, but when the reloaded track has no lang it then calls mp_guess_lang_from_filename(..., &nt->forced_track) (command.c:6323-6324), which unconditionally sets *forced = false (misc/language.c:31...
bug
low
[ { "path": "player/command.c", "from_line": 6323, "to_line": 6324, "role": "cause" }, { "path": "misc/language.c", "from_line": 310, "to_line": 311, "role": "other-site" } ]
command.c:6308 `flags |= t->forced_track ? TRACK_FORCED : 0;`; command.c:6322-6324 `if (!nt->lang) { bstr lang = mp_guess_lang_from_filename(bstr0(nt->external_filename), NULL, &nt->hearing_impaired_track, &nt->forced_track);`; language.c:310-311 `if (forced) *forced = false;`.
Must say the filename guess on reload overwrites/resets the forced flag restored from flags (explicit sub-add forced lost on reload). The same pre-existing pattern for hearing_impaired alone does not count.
false
[]
[]
[ "C1", "C4", "C9", "N3", "N4", "N5" ]
null
null
null
mpv-player/mpv
0b0330fa9d5d70c78f36e1010a3b826fa7046387
mpv-player__mpv@ff45a81
rest145
2
D1
gpu-next draw_frame dereferences frame->current without a NULL check (crash on idle/force-window or dummy redraw)
The new block at video/out/vo_gpu_next.c:923 reads frame->current->params.vflip unconditionally. vo.h:268-270 documents that frame->current can be NULL when the OSD is redrawn in --force-window --idle mode, and do_redraw (vo.c:1089-1102) passes a zeroed dummy vo_frame when no frame is retained; the rest of draw_frame g...
bug
high
[ { "path": "video/out/vo_gpu_next.c", "from_line": 923, "to_line": 927, "role": "cause" }, { "path": "video/out/vo.h", "from_line": 268, "to_line": 270, "role": "other-site" } ]
vo_gpu_next.c:923 `if (frame->current->params.vflip) {`; :939 `if (frame->current && !p->want_reset) {`; vo.h:268 `// Warning: When OSD should be redrawn in --force-window --idle mode, this can be NULL.`; vo.c `struct vo_frame dummy = {0}; if (!frame) frame = &dummy; ... vo->driver->draw_frame(vo, frame);`
Must say frame->current may be NULL / missing null check before accessing params.vflip in gpu-next draw_frame.
true
[]
[ "R11" ]
[ "C6", "C9", "N1", "N10", "N13" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D2
vflip is not propagated through image copies or AVFrame export, so the flip is lost on common paths
The new params.vflip is not carried where images are re-created: mp_image_copy_attributes (video/mp_image.c:508-528) copies params.rotate but not vflip, and mp_image_to_av_frame writes the DISPLAYMATRIX from rotation only (mp_image.c:1253-1258, av_display_rotation_set(params.rotate)), so a round trip through the lavfi ...
incomplete-fix
medium
[ { "path": "video/mp_image.c", "from_line": 508, "to_line": 528, "role": "cause" }, { "path": "video/mp_image.c", "from_line": 1253, "to_line": 1258, "role": "cause" }, { "path": "video/mp_image.c", "from_line": 1098, "to_line": 1106, "role": "other-site" } ]
mp_image.c:517 `dst->params.rotate = src->params.rotate;` with no vflip line in mp_image_copy_attributes; mp_image.c:1258 `av_display_rotation_set((int32_t *)sd->data, params.rotate);` (no av_display_matrix_flip); output chain order in f_output_chain.c puts user filters before autovflip and convert after it.
A finding must say vflip is not copied/propagated: mp_image_copy_attributes omits it, or mp_image_to_av_frame / the AVFrame display-matrix export drops it (round trip loses the flip). Comments about int-vs-bool typing do not count.
true
[]
[]
[ "C4", "C8", "C14", "C21", "C22", "N1", "N2", "N4", "N7", "N8" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D3
dmabuf-wayland maps vflip to WL_OUTPUT_TRANSFORM_FLIPPED (+4), which mirrors horizontally, not vertically
vo_dmabuf_wayland.c:713 sets `img->params.rotate / 90 + 4 * !!img->params.vflip`. In the Wayland protocol, transform 4 (FLIPPED) is a 180-degree flip around the vertical axis, i.e. a left-right mirror; a vertical flip at rotation 0 is FLIPPED_180 (6), and for other rotations the flip+rotation composition must be mapped...
bug
medium
[ { "path": "video/out/vo_dmabuf_wayland.c", "from_line": 713, "to_line": 713, "role": "cause" } ]
vo_dmabuf_wayland.c:713 `wl_surface_set_buffer_transform(vo->wl->video_surface, img->params.rotate / 90 + 4 * !!img->params.vflip);`; wayland.xml wl_output.transform: flipped=4 '180 degree flip around a vertical axis', flipped_180=6; mp_image.h:60 'The image should be flipped vertically before rotating'.
Must say the +4 transform flips on the wrong axis (horizontal mirror) or that rotate+vflip is mapped to the wrong wl_output_transform. A comment only calling 4 a magic number / suggesting named constants without saying the result is wrong does not count.
true
[]
[]
[ "C1", "C3", "C5", "N1", "N6" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D4
dmabuf-wayland handles vflip but does not advertise VO_CAP_VFLIP
The PR makes dmabuf-wayland apply vflip itself (vo_dmabuf_wayland.c:544 and :713) but its driver caps stay `VO_CAP_ROTATE90 | VO_CAP_FRAMEOWNER` (:866). autovflip therefore treats it as incapable: for its hardware (DRMPRIME/VAAPI) frames mp_sws_supports_input fails and it logs `Video vflip with this format not supporte...
contract
low
[ { "path": "video/out/vo_dmabuf_wayland.c", "from_line": 866, "to_line": 866, "role": "cause" }, { "path": "filters/f_auto_filters.c", "from_line": 386, "to_line": 390, "role": "symptom" } ]
vo_dmabuf_wayland.c:866 `.caps = VO_CAP_ROTATE90 | VO_CAP_FRAMEOWNER,`; f_auto_filters.c vflip_process `if (!vflip || (info && info->vflip))` then `if (!mp_sws_supports_input(img->imgfmt)) { MP_ERR(f, "Video vflip with this format not supported\n"); ...`; vo.c:582 warning on missing cap.
Must say dmabuf-wayland lacks/should advertise VO_CAP_VFLIP (so autovflip/vo warn or try a software fallback).
true
[]
[]
[ "C17", "C18" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D5
mp_image_params_equal ignores vflip, so flip-only changes are not treated as a format change
vflip was added to mp_image_params (mp_image.h:61) but not to mp_image_params_equal (mp_image.c:835-848). The decoder wrapper only refreshes fixed_format when params_equal fails and then overwrites every frame's params with it (f_decoder_wrapper.c:846-850), and player/video.c:1170 reconfigures the VO only when mp_image...
bug
low
[ { "path": "video/mp_image.c", "from_line": 835, "to_line": 848, "role": "cause" }, { "path": "filters/f_decoder_wrapper.c", "from_line": 846, "to_line": 850, "role": "symptom" }, { "path": "video/out/gpu/video.c", "from_line": 3733, "to_line": 3740, "role": "s...
mp_image.c:846 `p1->rotate == p2->rotate &&` with no vflip term; f_decoder_wrapper.c `if (!mp_image_params_equal(&p->last_format, &mpi->params)) fix_image_params(...); mpi->params = p->fixed_format;`; player/video.c:1170 `if (!vo->params || !mp_image_params_static_equal(p, vo->params))`.
Must say vflip is missing from mp_image_params_equal / params comparison, so flip-only changes don't trigger reconfiguration or refresh.
true
[]
[]
[ "C2", "C7", "C12", "N1", "N3", "N15" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D6
gpu-next writes the flip into the persistent pars->distort_params, clobbering user distortion and leaking the flip to later frames
draw_frame aliases `pl_options pars = p->pars` (vo_gpu_next.c:905) and on a flipped frame assigns `pars->distort_params.transform.mat = m` (:925). This overwrites any distortion transform configured through --libplacebo-opts (update_options re-applies only the keys the user set), and because the stored options are muta...
bug
low
[ { "path": "video/out/vo_gpu_next.c", "from_line": 923, "to_line": 927, "role": "cause" } ]
vo_gpu_next.c:905 `pl_options pars = p->pars;`, :910 `struct pl_render_params params = pars->params;`, :925 `pars->distort_params.transform.mat = m;`; update_options (:742-768) re-applies `pl_options_set_str(pars, kv[0], kv[1])` only for user-supplied raw_opts; no code resets the matrix when vflip is 0.
Must say the flip mutates shared/persistent distort params (overwriting configured distortion and/or persisting to unflipped frames). A bare 'reset when vflip is false' comment counts only if it identifies that the state persists.
false
[]
[ "R12" ]
[ "C10", "C11", "C13", "C19", "N5", "N9" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D7
vo_libmpv advertises VO_CAP_VFLIP even for the software render backend, which never applies vflip
vo_libmpv's static driver caps now include VO_CAP_VFLIP (vo_libmpv.c:747) regardless of backend, and f_output_chain.c:379 derives stream_info.vflip from vo->driver->caps. The software render API backend (libmpv_sw.c) only crops and scales and never handles params.vflip, so autovflip skips its software flip and software...
incomplete-fix
low
[ { "path": "video/out/vo_libmpv.c", "from_line": 747, "to_line": 747, "role": "cause" }, { "path": "filters/f_output_chain.c", "from_line": 379, "to_line": 379, "role": "other-site" } ]
vo_libmpv.c:747 `.caps = VO_CAP_ROTATE90 | VO_CAP_VFLIP,`; `git grep vflip -- video/out/libmpv_sw.c` returns nothing; f_output_chain.c:379 `p->stream_info.vflip = vo ? vo->driver->caps & VO_CAP_VFLIP : false;`.
Must say the libmpv software render backend does not implement vflip while the cap is advertised unconditionally (so no fallback flip happens).
false
[]
[]
[ "C16", "C24" ]
null
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D8
gpu-next applies vflip through distort_params, i.e. after rotation, so rotated+flipped video is 180 degrees off (flip-then-rotate order violated)
mp_image_params.vflip is defined as 'flipped vertically before rotating' (mp_image.h:60), and vo_gpu honours that by flipping at upload (gpu/video.c:3741/3751-3752, before rotation). vo_gpu_next instead passes rotation to libplacebo as pl_frame.rotation (vo_gpu_next.c:620) and implements the flip as a distortion transf...
bug
low
[ { "path": "video/out/vo_gpu_next.c", "from_line": 923, "to_line": 927, "role": "cause" }, { "path": "video/out/vo_gpu_next.c", "from_line": 620, "to_line": 620, "role": "context" }, { "path": "video/mp_image.h", "from_line": 60, "to_line": 61, "role": "contrac...
mp_image.h:60 `// The image should be flipped vertically before rotating`; vo_gpu_next.c:620 `.rotation = par.rotate / 90,`; :923-926 `if (frame->current->params.vflip) { pl_matrix2x2 m = { .m = {{1, 0}, {0, -1}}, }; pars->distort_params.transform.mat = m; params.distort_params = &pars->distort_params; }`; gpu/video.c ...
Must say that gpu-next's flip (distort_params) is applied after the rotation, contradicting the flip-before-rotate definition, so rotated+flipped content comes out wrong (180 degrees off / inconsistent with vo_gpu). Near-misses that do not count: the NULL frame->current crash (D1), the persistent-options mutation (D6),...
false
[]
[]
[ "N1" ]
extension-2026-09-28
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
mpv-player__mpv@ff45a81
rest145
2
D9
gpu-next screenshots of a flipped video are not flipped
vo_gpu_next advertises VO_CAP_VFLIP, so autovflip passes flipped frames through and gpu-next must flip them itself. draw_frame does so by setting params.distort_params (vo_gpu_next.c:923-927), but video_screenshot (vo_gpu_next.c:1297-1310) builds its own `params = pars->params` without applying the flip (pars->params.d...
bug
low
[ { "path": "video/out/vo_gpu_next.c", "from_line": 1306, "to_line": 1310, "role": "cause" }, { "path": "video/out/vo_gpu_next.c", "from_line": 923, "to_line": 927, "role": "context" } ]
vo_gpu_next.c:1306 `struct pl_render_params params = pars->params;` with no vflip/distort handling in video_screenshot; the flip exists only in draw_frame :923-927; gpu-next caps include VO_CAP_VFLIP (diff), and map_frame (:620) passes only rotation to libplacebo.
Must say the screenshot path (video_screenshot) of vo_gpu_next does not apply the vflip that draw_frame applies, so screenshots have the wrong orientation. Near-misses: generic 'vflip lost on copies' (D2) or the draw_frame state mutation (D6).
false
[]
[]
[ "N14" ]
extension-2026-09-28
null
null
mpv-player/mpv
ff45a8103e3c5ec3e786b950b4852c2750de936f
ppy__osu@87697a7
rest145
2
D1
PFC mode does nothing with Classic mod: legacy slider tails miss as SmallTickMiss, not IgnoreMiss
The new check matches only result.Type == HitResult.IgnoreMiss (osu.Game.Rulesets.Osu/Mods/OsuModSuddenDeath.cs:27), which is the miss result of the lazer TailJudgement (MaxResult SliderTailHit). With Classic mod's default 'No slider head accuracy requirement' (OsuModClassic.cs:25-26, 45-47 sets slider.ClassicSliderBeh...
bug
medium
[ { "path": "osu.Game.Rulesets.Osu/Mods/OsuModSuddenDeath.cs", "from_line": 25, "to_line": 31, "role": "cause" }, { "path": "osu.Game.Rulesets.Osu/Objects/SliderTailCircle.cs", "from_line": 23, "to_line": 28, "role": "other-site" } ]
OsuModSuddenDeath.cs:27 `if (SliderTailMiss.Value && result.HitObject is SliderTailCircle && result.Type == HitResult.IgnoreMiss) return true;`; SliderTailCircle.cs:23 `CreateJudgement() => ClassicSliderBehaviour ? new LegacyTailJudgement() : new TailJudgement();`, LegacyTailJudgement.MaxResult = SmallTickHit (min resu...
A comment must say the IgnoreMiss-only check misses the classic/legacy tail judgement (SmallTickMiss) so the option does not fail under Classic, or recommend `!result.IsHit` for slider tails because other tail miss types are not covered. Generic 'add tests' or naming comments do not count.
true
[]
[ "R1" ]
[ "C1", "C2", "C5", "N1", "N2", "N4" ]
null
null
null
ppy/osu
87697a72e333d1468a35d4a3fec388319cc16e2a
keycloak__keycloak@04ad5d5
rest145
2
D1
LoadBalancer.node() out-of-bounds message passes its format arguments in the wrong order
LoadBalancer.java:18 formats "Requested nodeIndex: %d, cluster size: %d" with (server.clusterSize(), nodeIndex), so node(5) on a 2-node cluster reports 'Requested nodeIndex: 2, cluster size: 5', a misleading diagnostic.
bug
low
[ { "path": "test-framework/clustering/src/main/java/org/keycloak/testframework/clustering/LoadBalancer.java", "from_line": 17, "to_line": 19, "role": "cause" } ]
LoadBalancer.java:18: `throw new IllegalArgumentException("Node index out of bounds. Requested nodeIndex: %d, cluster size: %d".formatted(server.clusterSize(), nodeIndex));`
Must say the formatted() arguments are swapped/reversed. A comment only about rejecting negative indices does not count.
true
[]
[ "R2" ]
[ "C7", "C28", "C32", "N3" ]
null
null
null
keycloak/keycloak
04ad5d530007517b60e2bf8706542556078d17f7
keycloak__keycloak@04ad5d5
rest145
2
D2
MixedVersionClusterTest is an assertion-free POC that sleeps a minute, and it now runs in the default tests/ build and CI
tests/pom.xml:40 adds clustering to the default modules, and the 'Base IT (new)' CI job runs `./mvnw package -f tests/pom.xml` with no test filter (ci.yml:1101, 30-minute cap). With kc.test.server=cluster (tests/clustering keycloak-test.properties:1) the test builds a Docker image and starts two Keycloak containers, th...
maintainability
low
[ { "path": "tests/clustering/src/test/java/org/keycloak/tests/compatibility/MixedVersionClusterTest.java", "from_line": 35, "to_line": 41, "role": "cause" }, { "path": "tests/pom.xml", "from_line": 40, "to_line": 40, "role": "other-site" } ]
MixedVersionClusterTest.java:37-40 `Assumptions.assumeTrue(loadBalancer.clusterSize() == 2); System.out.println("url0->" ...); System.out.println("url1->" ...); Thread.sleep(TimeUnit.MINUTES.toMillis(1));`. tests/pom.xml:40 `<module>clustering</module>`. ci.yml base-new-integration-tests: timeout-minutes: 30, `./mvnw p...
Must point at the sleep/println/absence of assertions (the test cannot detect a broken cluster) and/or that this debug test runs in the default build/CI. A generic 'add more tests' remark does not count.
true
[]
[]
[ "C1", "C29", "N3", "N7", "N12" ]
null
null
null
keycloak/keycloak
04ad5d530007517b60e2bf8706542556078d17f7
keycloak__keycloak@04ad5d5
rest145
2
D3
POC leftovers in tests/base: unneeded clustering dependency and a dead mixed-cluster profile
tests/base/pom.xml:91-95 adds keycloak-test-framework-clustering (hardcoded 999.0.0-SNAPSHOT) although no base test uses clustering, putting the clustering suppliers on the base suite's classpath for nothing. tests/base/pom.xml:139-150 adds a 'mixed-cluster' profile that only sets the Maven property kc.test.server=clus...
maintainability
low
[ { "path": "tests/base/pom.xml", "from_line": 91, "to_line": 95, "role": "cause" }, { "path": "tests/base/pom.xml", "from_line": 139, "to_line": 150, "role": "cause" } ]
tests/base/pom.xml:91-95 `<artifactId>keycloak-test-framework-clustering</artifactId><version>999.0.0-SNAPSHOT</version>`; 139-150 `<profile><id>mixed-cluster</id>...<properties><kc.test.server>cluster</kc.test.server></properties>`. tests/base/pom.xml surefire systemPropertyVariables contain only java.util.logging.man...
Must identify the clustering dependency and/or the mixed-cluster profile in tests/base as unintended/unneeded and to be removed. A comment only asking to replace 999.0.0-SNAPSHOT with ${project.version} or omit the version is a near-miss and does not count; nor do comments that the profile lacks a shared database.
true
[]
[ "R15", "R17" ]
[]
null
null
null
keycloak/keycloak
04ad5d530007517b60e2bf8706542556078d17f7
keycloak__keycloak@04ad5d5
rest145
2
D4
The clustering module's default run gives each node its own dev-mem database, so the nodes are not a real shared cluster
tests/clustering keycloak-test.properties:1-2 selects kc.test.server=cluster and kc.test.database.internal=true but no database. With no database alias, Extensions.loadSuppliers (Extensions.java:73-77) takes the first TestDatabase supplier, which is core's DevMemDatabaseSupplier (CoreTestFrameworkExtension lists it bef...
incomplete-fix
low
[ { "path": "tests/clustering/src/test/resources/keycloak-test.properties", "from_line": 1, "to_line": 2, "role": "cause" }, { "path": "test-framework/clustering/src/main/java/org/keycloak/testframework/server/ClusteredKeycloakServerSupplier.java", "from_line": 21, "to_line": 24, "...
keycloak-test.properties:1-2 `kc.test.server=cluster` / `kc.test.database.internal=true` (no kc.test.database). Extensions.java:74 `if (supplier.getAlias().equals(requestedSupplier) || (requestedSupplier == null && !loadedValueTypes.contains(valueType)))`. DevMemDatabaseSupplier serverConfig `Map.of("db", "dev-mem")`. ...
Must say that without an explicit database selection the cluster nodes run on separate dev-mem/in-memory databases (no shared DB), for the clustering module or for cluster mode generally. Comments about the tests/base mixed-cluster profile's database do not count here.
false
[]
[]
[ "C11", "C17", "C31", "C25", "N1", "N6" ]
null
null
null
keycloak/keycloak
04ad5d530007517b60e2bf8706542556078d17f7
keycloak__keycloak@04ad5d5
rest145
2
D5
ClusteredKeycloakServer ignores failed node startup, reporting a started cluster that later NPEs
DockerKeycloakDistribution.run() catches any startup exception, cleans up, sets keycloakContainer = null, logs a warning and returns a CLIResult with exit code -1. ClusteredKeycloakServer.startContainersWithMixedImage/SameImage (ClusteredKeycloakServer.java:93 and 109) discard that result, so start() returns normally w...
bug
low
[ { "path": "test-framework/clustering/src/main/java/org/keycloak/testframework/server/ClusteredKeycloakServer.java", "from_line": 93, "to_line": 93, "role": "cause" }, { "path": "test-framework/clustering/src/main/java/org/keycloak/testframework/server/ClusteredKeycloakServer.java", "from...
DockerKeycloakDistribution.run(): `} catch (Exception cause) { this.exitCode = -1; ... cleanupContainer(); keycloakContainer = null; LOGGER.warn("Failed to start Keycloak container", cause); }` then `return CLIResult.create(...)`. ClusteredKeycloakServer.java:93/109 `container.run(configBuilder.toArgs());` (result unus...
Must say the CLIResult / failure of run() is ignored so a node that failed to start is treated as started. Low: the failure still surfaces (as an NPE, with the cause in a WARN log).
false
[]
[]
[ "C2", "C13", "C20", "N10", "N11" ]
null
null
null
keycloak/keycloak
04ad5d530007517b60e2bf8706542556078d17f7
keycloak__keycloak@04ad5d5
rest145
2
D6
Default DockerKeycloakDistribution constructor NPEs: getProjectDir(Paths.get("")) returns the empty relative path whose getParent() is null
DockerKeycloakDistribution.java:89 computes the default image from BuildToolHelper.getProjectDir(Paths.get("")).getParent().getParent(). Paths.get("") is an empty relative path; when the working directory holds a pom.xml (surefire runs in the module basedir, e.g. quarkus/tests/integration) getProjectDir returns that sa...
bug
high
[ { "path": "quarkus/tests/junit5/src/main/java/org/keycloak/it/utils/DockerKeycloakDistribution.java", "from_line": 89, "to_line": 89, "role": "cause" }, { "path": "quarkus/tests/junit5/src/main/java/org/keycloak/it/junit5/extension/DistributionType.java", "from_line": 32, "to_line": ...
DockerKeycloakDistribution.java:89 `this.image = image == null ? createImage(BuildToolHelper.getProjectDir(Paths.get("")).getParent().getParent(), false) : image;`. DistributionType.java:33 `return new DockerKeycloakDistribution(config.debug(), config.keepAlive(), config.requestPort(), config.containerExposedPorts());`...
Must say the default-image path computation from Paths.get("") (relative/empty path) yields a null getParent() and NPEs (or otherwise fails) for the default constructor / docker distribution tests. Relies on Quarkus BuildToolHelper.getProjectDir returning its (non-absolutised) input when pom.xml is found there, as its ...
false
[]
[]
[ "N3" ]
extension-2026-09-28
null
null
keycloak/keycloak
04ad5d530007517b60e2bf8706542556078d17f7
bluewave-labs__Checkmate@32b54dd
rest145
2
D1
Expected-value matching compares the whole (JSON-parsed) payload and returns before jsonPath is applied: JSON monitors go DOWN or the check throws
server/src/service/infrastructure/networkService.js:156-169 compares expectedValue against `payload`, which for application/json responses is the JSON.parse'd object (135-140), and returns before the jsonPath block (171-188) runs. With jsonPath+expectedValue (both offered by the Create form) the extracted value is neve...
bug
high
[ { "path": "server/src/service/infrastructure/networkService.js", "from_line": 156, "to_line": 169, "role": "cause" }, { "path": "server/src/service/infrastructure/networkService.js", "from_line": 135, "to_line": 143, "role": "other-site" }, { "path": "server/src/service/i...
server/src/service/infrastructure/networkService.js:137 `payload = JSON.parse(response.body);` :158 `ok = payload === expectedValue;` :159 `ok = payload.includes(expectedValue);` :160 `ok = new RegExp(expectedValue).test(payload);` :162-168 return; jsonPath only evaluated afterwards at :171-187 (and :182 discards the j...
Counts: a comment saying the match ignores jsonPath / compares the whole parsed payload, or that returning early skips the jsonPath evaluation, or that `payload.includes` throws on a JSON-parsed (non-string) payload. A generic 'restructure the conditionals' remark (R22) or 'overwrites status code with 500' (R24) does n...
true
[]
[ "R25" ]
[ "C10", "C22", "C28", "C30", "C40", "N3", "N4", "N5", "N6", "N7", "N8" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D2
Docker ambiguity check fails a monitor whose exact container name is also an ID prefix (of another container or its own)
server/src/service/infrastructure/networkService.js:299-316 counts match METHODS, not distinct containers: exactNameMatch and partialIdMatch are computed independently (271-279), so a name made only of hex chars (e.g. 'db', 'cafe', 'abc') that is also the prefix of any container ID (possibly its own) yields matchTypes=...
bug
medium
[ { "path": "server/src/service/infrastructure/networkService.js", "from_line": 299, "to_line": 316, "role": "cause" }, { "path": "server/src/service/infrastructure/networkService.js", "from_line": 271, "to_line": 282, "role": "other-site" } ]
server/src/service/infrastructure/networkService.js:302 `if (exactNameMatch) matchTypes.push("exact name");` :303 `if (partialIdMatch && !exactIdMatch) matchTypes.push("partial ID");` :305 `if (matchTypes.length > 1) { ... dockerResponse.status = false; ... return dockerResponse; }` although :282 already chose `exactId...
Must say a legitimate exact-name match is turned into a failure because a (lower-priority) partial-ID match also exists, or that ambiguity should compare distinct containers / honour the priority pick. R28 (claims the branch can never trigger) is the opposite and does not count.
true
[]
[]
[ "C23", "C42", "C43", "N6", "N11", "N12", "N13" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D3
Ambiguous-match branch assigns 404 to status (then false) and never sets code
server/src/service/infrastructure/networkService.js:312-313 sets `dockerResponse.status = 404;` immediately followed by `dockerResponse.status = false;` — the 404 was meant for `code`. The returned response has code undefined, so buildCheck (statusService.js:225 `statusCode: code`) stores a check without a status code ...
bug
low
[ { "path": "server/src/service/infrastructure/networkService.js", "from_line": 312, "to_line": 313, "role": "cause" } ]
server/src/service/infrastructure/networkService.js:312 `dockerResponse.status = 404;` :313 `dockerResponse.status = false;` vs :293 `dockerResponse.code = 404;`.
Must point at the duplicate status assignment / the missing code on the ambiguous branch.
true
[]
[ "R29" ]
[ "C4", "C9", "C25", "N6" ]
null
null
{"bots": ["LlamaPReview"], "dataset_refs": ["R29"], "references": ["server/src/service/infrastructure/networkService.js:305-305:144b0dbb55bf"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."}
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D4
Threshold migration swallows failures, so startup proceeds with unconverted fractional thresholds
server/src/db/mongo/migration/0001_migrateStatusWindowThreshold.js:12-15 catches any find/save error and returns false; migration/index.js:4 ignores the return value and MongoDB.js:69 continues connect normally. Monitors left at e.g. 0.6 are then compared against percentage failure rates (statusService.js:153-161: `fai...
data
low
[ { "path": "server/src/db/mongo/migration/0001_migrateStatusWindowThreshold.js", "from_line": 12, "to_line": 15, "role": "cause" }, { "path": "server/src/db/mongo/migration/index.js", "from_line": 3, "to_line": 5, "role": "other-site" }, { "path": "server/src/db/mongo/Mong...
0001_…js:12 `} catch (err) { console.error("Migration error:", err); return false; }`; index.js:4 `await migrateStatusWindowThreshold();` (result discarded); statusService.js:153 `failureRate = (failures / …length) * 100`.
Must say the migration failure is swallowed / its false return ignored so startup continues with partially migrated (fractional) thresholds. R15 (asks for a try/catch because an error would be an unhandled rejection) is the opposite claim and does not count; R11 (log ordering) does not count.
false
[]
[]
[ "C11", "C13", "C15", "C18", "C31", "N2", "N16" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D5
Tooltip callback that calls useTheme is invoked as a plain function inside DataTable's row loop (rules-of-hooks violation)
client/src/Components/Table/index.jsx:111-115 calls `config.tooltipContent(row)` during DataTable's render for every row, and IncidentTable's GetTooltip (IncidentTable/index.jsx:27-28) calls MUI `useTheme()`. The hook therefore runs as DataTable's own hook a variable number of times (once per row). In React 18.3 this d...
maintainability
low
[ { "path": "client/src/Components/Table/index.jsx", "from_line": 111, "to_line": 115, "role": "cause" }, { "path": "client/src/Pages/Incidents/Components/IncidentTable/index.jsx", "from_line": 27, "to_line": 29, "role": "other-site" }, { "path": "client/src/Pages/Incidents...
Table/index.jsx:112-113 `typeof config.tooltipContent === "function" ? config.tooltipContent(row) : …` inside `data.map`; IncidentTable GetTooltip: `const theme = useTheme();`; config passed as `config={{ tooltipContent: GetTooltip }}`.
Counts: a comment that GetTooltip's hook is executed inside DataTable's per-row loop / should be rendered as a component. The claimed hard crash is overstated for useContext-only hooks but the identification counts. A pure naming remark (R2: rename to PascalCase) does not count.
false
[]
[ "R3" ]
[ "C1", "C6", "C20", "C34", "N1", "N6", "N14", "N15" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D6
New Docker identifier regex rejects valid container names ending in '_', '.' or '-'
client/src/Validation/validation.js:133-135 requires every name to end with an alphanumeric character (`[a-zA-Z0-9][a-zA-Z0-9_.-]*[a-zA-Z0-9]|[a-zA-Z0-9]+`), but Docker allows names matching `[a-zA-Z0-9][a-zA-Z0-9_.-]+`, so containers named e.g. `worker_` or `app-` cannot be monitored by name through the form the PR ju...
bug
low
[ { "path": "client/src/Validation/validation.js", "from_line": 133, "to_line": 135, "role": "cause" } ]
validation.js:134 `/^(\/+)?([a-zA-Z0-9][a-zA-Z0-9_.-]*[a-zA-Z0-9]|[a-zA-Z0-9]+|[a-f0-9]{12,64})$/` — no alternative accepts a trailing `_`, `.` or `-`.
Must say valid Docker names with a trailing '_', '.' or '-' are rejected. R8 (leading slashes / 12-64 hex overlap) does not count.
false
[]
[]
[ "C26", "N6" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D7
Incident tooltip renders 'Response time: undefined ms' for checks without a response time
client/src/Pages/Incidents/Components/IncidentTable/index.jsx:44-49 always renders `Response time: ${row?.responseTime} ms`, but responseTime is optional on Check (Check.js `responseTime: {type: Number}` without default) and failed Docker checks (networkService.js:293-296 not-found, 312-315 ambiguous) are recorded with...
bug
low
[ { "path": "client/src/Pages/Incidents/Components/IncidentTable/index.jsx", "from_line": 44, "to_line": 49, "role": "cause" } ]
IncidentTable/index.jsx `{`Response time: ${row?.responseTime} ms`}`; networkService.js:293-296 returns dockerResponse with no responseTime; statusService buildCheck copies `responseTime` as-is.
Must say the tooltip shows 'undefined ms' (missing responseTime) for some incidents.
false
[]
[]
[ "C2" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
bluewave-labs__Checkmate@32b54dd
rest145
2
D8
Accidental unused `import { match } from "assert"` in networkService
server/src/service/infrastructure/networkService.js:1 imports `match` from node's assert module (an IDE auto-import) that is never used; eslint's recommended `no-unused-vars` (server/eslint.config.js uses pluginJs.configs.recommended) reports it, so `npm run lint` errors on this file.
build
low
[ { "path": "server/src/service/infrastructure/networkService.js", "from_line": 1, "to_line": 1, "role": "cause" } ]
server/src/service/infrastructure/networkService.js:1 `import { match } from "assert";` — no other `match(` reference in the file; server/package.json `"lint": "eslint ."`.
Must name the unused `match` import.
false
[]
[ "R21" ]
[ "C3", "C19" ]
null
null
null
bluewave-labs/Checkmate
32b54ddf11ea27b8ed85d2139fe38e0dcb7f3d43
linera-io__linera-protocol@024925d
rest145
2
D1
The grace period is not actually configurable: no ChainClientOptions/builder wiring, every caller hard-codes None
The PR's stated purpose (issue #2836; body: 'added that value to ChainClientOptions and threaded through the Client builder') is a configurable grace period, but the change only adds a parameter to the crate-internal updater::communicate_with_quorum (linera-core/src/updater.rs:109) and all four call sites in linera-cor...
incomplete-fix
medium
[ { "path": "linera-core/src/client/mod.rs", "from_line": 1114, "to_line": 1114, "role": "cause" }, { "path": "linera-core/src/client/mod.rs", "from_line": 1150, "to_line": 1150, "role": "other-site" }, { "path": "linera-core/src/client/mod.rs", "from_line": 1521, "...
The diff adds only `None,` at each of the four call sites; `git grep -n grace <head> -- '*.rs'` finds no quorum grace field in ChainClientOptions/Client (only the unrelated chain-worker timestamp grace_period). meta.json body claims ChainClientOptions/builder threading.
Must say the grace period is never plumbed from ChainClientOptions/client config, i.e. all callers pass None so it is not configurable. A comment only about the parameter type (impl Into<Option<f64>>) or input validation does not count.
true
[]
[]
[ "C8", "C9" ]
null
null
null
linera-io/linera-protocol
024925dfbeff5daaecdd2cd733cda2825eff1bb7
linera-io__linera-protocol@024925d
rest145
2
D2
New comment lines carry trailing whitespace, failing the `cargo fmt -- --check` CI lint
Two added comment lines end with a trailing space: updater.rs:34 (`/// The default amount of time we wait for additional validators to contribute `) and updater.rs:178 (`// If a key reaches a quorum, wait for the grace period to collect more values `). rustfmt trims trailing whitespace when it rewrites comments, so the...
build
medium
[ { "path": "linera-core/src/updater.rs", "from_line": 34, "to_line": 34, "role": "cause" }, { "path": "linera-core/src/updater.rs", "from_line": 178, "to_line": 178, "role": "cause" } ]
`grep -n ' $'` on head updater.rs hits exactly lines 34 and 178; .github/workflows/rust.yml:296 runs `cargo fmt -- --check`.
Must point at the trailing whitespace / rustfmt check failing on these comment lines. Generic formatting nits elsewhere do not count.
true
[]
[]
[]
null
null
null
linera-io/linera-protocol
024925dfbeff5daaecdd2cd733cda2825eff1bb7
linera-io__linera-protocol@024925d
rest145
2
D3
Early break when no quorum is possible drops the grace window, so trusted errors (e.g. InactiveChain) degrade to Sample
Before, when highest_key_score + remaining_votes < quorum_threshold, the loop still waited a grace period so further error responses could push one error past validity_threshold and return CommunicationError::Trusted. Now it does `break 'vote_wait` at once (updater.rs:173-175) and falls through to Sample/NoConsensus (:...
bug
low
[ { "path": "linera-core/src/updater.rs", "from_line": 173, "to_line": 175, "role": "cause" }, { "path": "linera-core/src/client/mod.rs", "from_line": 1524, "to_line": 1533, "role": "symptom" } ]
head updater.rs:173-175 `if highest_key_score + remaining_votes < committee.quorum_threshold() { break 'vote_wait; }`; Trusted is returned only inside the loop (:163-168 `if *entry >= committee.validity_threshold()`); base set end_time for this case too.
Must say the immediate break removes the chance to collect a trusted error / changes which error variant is returned. Saying only that the loop label is unnecessary or the loop was restructured does not count.
true
[]
[]
[ "C2", "C11", "C12", "N1", "N2", "N3", "N4" ]
null
null
null
linera-io/linera-protocol
024925dfbeff5daaecdd2cd733cda2825eff1bb7