instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
winnow-rs__winnow__726
winnow-rs/winnow
726
defect
a259438166bb4d9eccae150bb03564654e26e190
4445ad4f96f1a4a010b5ec17dd0c21eeb944d891
fix!: Remolve deprecated code
<!-- Thanks for helping out! Please link the appropriate issue from your PR. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it's an obvious bug or documentation fix that will have little conversation). -->
diff --git a/examples/custom_error.rs b/examples/custom_error.rs index a4f9234cc..8d5fb0728 100644 --- a/examples/custom_error.rs +++ b/examples/custom_error.rs @@ -1,7 +1,5 @@ use winnow::error::AddContext; use winnow::error::ErrMode; -#[allow(deprecated)] -use winnow::error::ErrorKind; use winnow::error::FromExter...
1
1
0
[{"id": "G0", "claim": "The `format!` wrapping the \"error\" literal in CustomError's from_input is a useless use of format!.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
winstonjs__winston__1307
winstonjs/winston
1,307
defect
d9304b89af29edc9e90d466aee67dc6be3d82cfb
e8f1a27e790eb3bab0b4992252fb79093fe2e3aa
[Winston 2.x] Decycle circular `Error` instances
Hey there! I understand that work on Winston 2 has ceased, so we can continue to use our own fork if this isn't worth pursuing for you. That said, it would be better for us to depend upon an official version of 2.x if possible. We use Winston 2 on a legacy project at News UK and were encountering `TypeError: Conv...
diff --git a/lib/winston/common.js b/lib/winston/common.js index c1b94dfda..8ed997327 100644 --- a/lib/winston/common.js +++ b/lib/winston/common.js @@ -85,7 +85,7 @@ exports.clone = function (obj) { copy[key] = obj[key]; }); - return copy; + return cycle.decycle(copy); } else if (!(obj instan...
1
1
0
[{"id": "G0", "claim": "The package.json version should not be bumped in this PR because release versions are managed manually.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
winstonjs__winston__1328
winstonjs/winston
1,328
defect
1d0a6975669e5deecc384ed55de67c0023b3f6ee
161daf73df8553a274a95e76d27e4673207909a6
[fix] Update level property to change transport level #1191
This should fix #1191, see the added testcase.
diff --git a/lib/winston/logger.js b/lib/winston/logger.js index 5a5f4e443..2845162d6 100644 --- a/lib/winston/logger.js +++ b/lib/winston/logger.js @@ -80,7 +80,7 @@ class Logger extends stream.Transform { // Hoist other options onto this instance. this.levels = levels; - this.level = level; + this._...
2
1
1
[{"id": "G0", "claim": "The `if (obj.level === 'info')` assertion inside the new test's transport `log()` looks like unreachable dead code (it asserts `obj` equals `undefined` even though `obj` carries a `level`); the reviewer suggests using `assume(obj.level).equals('error')` instead and cleaning up similar dead code ...
null
winstonjs__winston__1562
winstonjs/winston
1,562
defect
664b44ba4d8656880c1d09253eabc55636ab97ef
9992bb376de10dc1c356d4e2a2a12fb76cab2f7b
Better handling of `new Error(string)` throughout the pipeline(s). Fixes #1338, #1486
There are 14 distinct entry-points for this. They are now tracked by `test/formats/errors.test.js`: ``` format.errors (integration) ✓ logger.log(level, error) ✓ logger.log(level, error) [custom error properties] ✓ logger.log(level, error, meta) ✓ logger.log(level, error, meta) [custom error pr...
diff --git a/README.md b/README.md index b5eadf0be..ff9c7549a 100644 --- a/README.md +++ b/README.md @@ -235,19 +235,13 @@ treated as immutable by all code. - `Symbol.for('message'):` complete string message set by "finalizing formats": `json`, `logstash`, `printf`, `prettyPrint`, and `simple`. -> **NOTE:** the `...
2
2
1
[{"id": "G0", "claim": "In `logger.log`, `this.defaultMeta` is passed after the caller-supplied `meta` to `Object.assign` at both write sites, so default meta overrides meta provided by the caller.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Th...
null
winstonjs__winston__2256
winstonjs/winston
2,256
defect
2489a3d13b20797d3dbc55d3daf560cf52c2e6a3
af6bb6ca8644d9b7a4c0deaa8685b2b292f6b02f
fix: properly allow passing non-arry transport
LoggerOptions allows transports to be a single Transport instance as seen here: https://github.com/winstonjs/winston/blob/2489a3d13b20797d3dbc55d3daf560cf52c2e6a3/index.d.ts#L102 in containers, if you do this it will result in an error that says `existing.slice` doesn't exist
diff --git a/lib/winston/container.js b/lib/winston/container.js index 1c6f1140c..457e89f28 100644 --- a/lib/winston/container.js +++ b/lib/winston/container.js @@ -40,7 +40,11 @@ module.exports = class Container { // Remark: Make sure if we have an array of transports we slice it to // make copies of t...
1
1
1
[{"id": "G0", "claim": "The new code should assign to `options.transports` rather than the misspelled `options.transport`, in both branches of the new conditional.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
winstonjs__winston__2317
winstonjs/winston
2,317
defect
7643ad6db1bcff3c64f2e06725a978be815196ce
c587108c3786cb036142fcef9609c1d6fb928444
Added Lazy Option in transport
This change tries to address the issue https://github.com/winstonjs/winston/issues/1494. -Added lazy option in file transport - Added test case for file rotation format - Added test case for lazy option
diff --git a/docs/transports.md b/docs/transports.md index c5dc8eafd..3ad2466d1 100644 --- a/docs/transports.md +++ b/docs/transports.md @@ -102,6 +102,7 @@ looking for daily log rotation see [DailyRotateFile](#dailyrotatefile-transport) * __level:__ Level of messages that this transport should log (default: level set...
3
3
1
[{"id": "G0", "claim": "The CI must be made to pass first, starting with the linter problems it currently shows.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The comment typo should read \"// Listen to file close event called when the file is closed\"...
null
winstonjs__winston__501
winstonjs/winston
501
defect
41342885cd55ad2c43dc9eab46d83e664e7948ff
ae27a19921d6d58f448ab20856400368d35a632e
Fixes #306: Can't set customlevels to my loggers
(aka `RangeError: Maximum call stack size exceeded` when setting custom levels) I've tracked the issue and found that `log` method was overriden by one of the levels named `log`. My approach to fix this was creating a check and throwing an exception when a name collision is found. Also, I've added a `console.warn` whe...
diff --git a/lib/winston/common.js b/lib/winston/common.js index fc210bbd5..3221359bd 100644 --- a/lib/winston/common.js +++ b/lib/winston/common.js @@ -22,6 +22,7 @@ var util = require('util'), // for each of those levels. // exports.setLevels = function (target, past, current, isDefault) { + var self = this; i...
2
2
2
[{"id": "G0", "claim": "A custom level named \"log\" should produce a warning (and be skipped) instead of throwing an Error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The console.warn on a level overriding an existing property is unnecessary and sho...
null
wireapp__core-crypto__1033
wireapp/core-crypto
1,033
defect
2fd7375c6257f53a6233f19a0fe4800cc23760e9
282e61f24970d68c93062b7905f80cf390a040b7
refactor: centralize mls client and rename to `Session` [WPB-15533]
# What's new in this PR - rename `mls::Client` to `Session` - restructure module tree appropriately - rename relevant helper structs - rename relevant helper traits - ensure all `Session` impls are in `session` tree However, I intentionally decided not to go through and rename all locals of these types. That ...
diff --git a/crypto-ffi/src/core_crypto/mod.rs b/crypto-ffi/src/core_crypto/mod.rs index f0107e614e1..af7921b8915 100644 --- a/crypto-ffi/src/core_crypto/mod.rs +++ b/crypto-ffi/src/core_crypto/mod.rs @@ -8,7 +8,7 @@ pub(crate) mod mls_transport; mod proteus; mod randomness; -use core_crypto::prelude::{Client, MlsC...
2
1
0
[{"id": "G0", "claim": "The new doc comment stating \"There is one `Session` per user per device.\" is confusing and possibly inaccurate, since one can imagine multiple Session instances (e.g. one on an on-disk database, one on an in-memory database) sharing the same user and device IDs.", "category": "documentation", ...
null
wireapp__core-crypto__1206
wireapp/core-crypto
1,206
defect
f834d1d374a77f0d5c7d21f72c941400aa4423d3
09e328c012c650989bbdec8c51fbe93d0544f91b
feat: history observer
# What's new in this PR ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [ ] answers the question: _If merged, t...
diff --git a/crypto-ffi/src/core_crypto/history_observer.rs b/crypto-ffi/src/core_crypto/history_observer.rs new file mode 100644 index 00000000000..a59edd6f3d8 --- /dev/null +++ b/crypto-ffi/src/core_crypto/history_observer.rs @@ -0,0 +1,220 @@ +use async_trait::async_trait; +use core_crypto::prelude::{ConversationId,...
5
4
0
[{"id": "G0", "claim": "The new `register_history_observer` parameter should be named `history_observer` rather than `history_handler`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "New files should group their imports as std lib, blank line, t...
null
wireapp__core-crypto__1230
wireapp/core-crypto
1,230
defect
9b26ee3e8d89a4ad2cdf4ab36e57bf054c1ec63c
d7f7eb13a9aec23bfb079ece5fed9107b114b3dc
refactor: constructor simplification
# What's new in this PR Simplify / rationalize the constructors and builders of the appropriate types - `MlsCryptoProvider` - `keystore::Connection` - `mls::Session` ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ ...
diff --git a/Cargo.lock b/Cargo.lock index 8f34705ec94..2d37d409376 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -689,12 +689,9 @@ dependencies = [ [[package]] name = "cobs" -version = "0.3.0" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa961b519f0b462e3a3b4a34b...
3
3
1
[{"id": "G0", "claim": "The pull request's Cargo.toml formatting does not match what taplo produces (the reviewer gets a different result), and the taplo config used is not in the repo, so the reviewer asks for the config to be added to the repo.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
wireapp__core-crypto__1280
wireapp/core-crypto
1,280
defect
f334ccc0bf838959375fa19c94157b8d87b158c0
baf07472eaba4192d7bd060e912672f194a7c014
fix(transaction): use HashMap for in-memory cache [WPB-18762]
# What's new in this PR See corresponding Jira item ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [x] contains a reference JIRA issue number like `SQPIT-764` - [x] answers ...
diff --git a/keystore-dump/Cargo.toml b/keystore-dump/Cargo.toml index 030de7c5cbf..debde208427 100644 --- a/keystore-dump/Cargo.toml +++ b/keystore-dump/Cargo.toml @@ -13,7 +13,7 @@ workspace = true color-eyre = "0.6" [target.'cfg(not(target_family = "wasm"))'.dependencies] -core-crypto-keystore = { workspace = tr...
3
2
0
[{"id": "G0", "claim": "The reviewer suggests using the slice method `.reverse()` (`if params.reverse { data.reverse(); }`) instead of `.rev()` on a boxed iterator.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `get_all` implementation need not re-`...
null
wireapp__core-crypto__1485
wireapp/core-crypto
1,485
defect
bffe748bbb18fb8d5de47a8e9d17868df08b453b
593d167536dca2939b208bb76656d87849233318
feat: add new `Database` type [WPB-19568]
# What's new in this PR See corresponding Jira item ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [x] contains a reference JIRA issue number like `SQPIT-764` - [x] answers ...
diff --git a/crypto-ffi/src/core_crypto/mod.rs b/crypto-ffi/src/core_crypto/mod.rs index 8486a18d855..6cfb76d6430 100644 --- a/crypto-ffi/src/core_crypto/mod.rs +++ b/crypto-ffi/src/core_crypto/mod.rs @@ -17,7 +17,7 @@ use crate::{ CoreCryptoError, CoreCryptoResult, ciphersuite::Ciphersuites, client_id::...
1
1
0
[{"id": "G0", "claim": "In crypto-ffi/src/database/mod.rs, module declarations should be placed above the `use` statements that take things from them (implying all module declarations come before all use statements).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
wireapp__core-crypto__1499
wireapp/core-crypto
1,499
defect
a4907847da3d7b0bdc7c715d70742e8ad8cbe562
8630358de63a046e1f41ed3da9294686e631788e
refactor: define ConversationId as newtype [WPB-20213]
# What's new in this PR This PR changes the existing type alias `ConversationId` to a newtype and removes any `Obfuscated::from` calls used to log a `ConversationId`. To avoid any unnecessary copying of bytes we introduced ConversationIdRef that allows us to efficiently handle CovnersionIds as [u8] based on the sam...
diff --git a/crypto/src/mls/conversation/mod.rs b/crypto/src/mls/conversation/mod.rs index 6bd6c36539a..77bfd123c79 100644 --- a/crypto/src/mls/conversation/mod.rs +++ b/crypto/src/mls/conversation/mod.rs @@ -25,6 +25,8 @@ use openmls_traits::types::SignatureScheme; use std::{collections::HashMap, sync::Arc}; use std...
3
1
0
[{"id": "G0", "claim": "The reviewer asks why the Obfuscate impl for the new ConversationId is hand-written instead of coming for free from the existing derive macro.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `impl From<&ConversationId>...
null
wireapp__core-crypto__1513
wireapp/core-crypto
1,513
defect
c2b15be33e0068f6bf239443a068c43a46280fe6
1ea32105c69d26972e89bfbe7ba632895e53756f
feat!: decouple database from initialization [WPB-19569]
# What's new in this PR first iteration of new client API: decouple database from initializing cc ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA ...
diff --git a/crypto-ffi/src/core_crypto/mod.rs b/crypto-ffi/src/core_crypto/mod.rs index 5e30012c117..411035a7f6e 100644 --- a/crypto-ffi/src/core_crypto/mod.rs +++ b/crypto-ffi/src/core_crypto/mod.rs @@ -13,11 +13,9 @@ use core_crypto::prelude::{Session, SessionConfig, ValidatedSessionConfig}; #[cfg(target_family = "...
5
5
1
[{"id": "G0", "claim": "A peer constructor `in_memory(key: DatabaseKeyMaybeArc) -> CoreCryptoResult<Self>` could be added next to `Database::open`, to encourage clients to use a real CC in their test suites.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wireapp__core-crypto__1518
wireapp/core-crypto
1,518
defect
3b72bfa4f7f78a38c6333299158d8378bd4d23f5
e16a6d7894bc59abd999addcc4ef8506e0141bfb
feat!: simplify cc initialization and mls_init() [WPB-19569]
# What's new in this PR ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [ ] answers the question: _If merged, t...
diff --git a/crypto-ffi/src/core_crypto/mod.rs b/crypto-ffi/src/core_crypto/mod.rs index 63b1553fc3f..8ba92848b11 100644 --- a/crypto-ffi/src/core_crypto/mod.rs +++ b/crypto-ffi/src/core_crypto/mod.rs @@ -14,9 +14,7 @@ use core_crypto::{Session, SessionConfig, ValidatedSessionConfig}; use wasm_bindgen::prelude::*; ...
2
1
0
[{"id": "G0", "claim": "`TransactionContext::mls_init` needlessly requires an owned `Vec<MlsCiphersuite>`; it should take `&[MlsCiphersuite]` so callers (e.g. the tests) do not have to allocate a vector.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sin...
null
wireapp__core-crypto__1689
wireapp/core-crypto
1,689
defect
f4401aa72ca653f4ffa5a4b08fc74a5c06ef18b1
1de5715a335b614bba3c797a31b993f649e3ae93
feat: conversation API with credentials [WPB 19576]
# What's new in this PR See above, corresponding jira item, and commit sequence ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `...
diff --git a/crypto/benches/commit.rs b/crypto/benches/commit.rs index 553db12b213..35ca52fc45b 100644 --- a/crypto/benches/commit.rs +++ b/crypto/benches/commit.rs @@ -48,7 +48,7 @@ fn commit_add_n_clients_bench(c: &mut Criterion) { b.to_async(FuturesExecutor).iter_batched( || { ...
2
2
0
[{"id": "G0", "claim": "The doc-comments of the renamed invite_with_credential* helpers still say the invited members' key packages will be \"of the provided credential type\", though the functions now take per-session credentials instead of a credential type.", "category": "documentation", "verdict": "supported", "pri...
null
wireapp__core-crypto__176
wireapp/core-crypto
176
defect
5f20e8983ffc396dda07ccb18e324a18c8a40d7f
b032aa95f5afae4cd02a307dde4906e1c598de72
bench: more ciphersuites and compare MLS to Proteus
---- #### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [x] answers the question: _If merged, this PR will: ..._ ³ - The *...
diff --git a/crypto/Cargo.toml b/crypto/Cargo.toml index 0995fc75537..222f337548e 100644 --- a/crypto/Cargo.toml +++ b/crypto/Cargo.toml @@ -24,7 +24,10 @@ cryptobox-migrate = [ "dep:futures-lite", "dep:rexie" ] +# for test/bench all ciphersuites test-all-cipher = [] +# execute benches with just in-memory d...
3
3
0
[{"id": "G0", "claim": "Not sure if the session_save call is needed in the encrypt benchmark iteration, as only payloads are encrypted, and it might lead to false I/O overhead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Generating the new prekey...
null
wireapp__core-crypto__178
wireapp/core-crypto
178
defect
da6f47b11202bebdade35b8ba5a491e311a3b2aa
54032f687f66a83d65b966919f6763a98933c397
feat!: simplify configuration
---- #### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [x] answers the question: _If merged, this PR will: ..._ ³ - The *...
diff --git a/crypto-ffi/bindings/js/CoreCrypto.ts b/crypto-ffi/bindings/js/CoreCrypto.ts index 8496500eeb0..f53a8c3417e 100644 --- a/crypto-ffi/bindings/js/CoreCrypto.ts +++ b/crypto-ffi/bindings/js/CoreCrypto.ts @@ -58,20 +58,10 @@ export enum Ciphersuite { * Configuration object for new conversations */ export i...
1
1
0
[{"id": "G0", "claim": "Do not delete the keyRotationSpan configuration field from the TypeScript bindings: it will be needed in the future, so it should be kept no matter what.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wireapp__core-crypto__1802
wireapp/core-crypto
1,802
defect
a96861529d0fa0929ae8ada3e7cec815e1596dbf
b2fc73cb1c1e7c9406f080781b73493674610cef
feat: RustCrypto singleton and fixes for e2e test
# What's new in this PR This PR introduces a Singleton for RustCrypto, further decoupling functions from the mls session by not using the mls provider to access database or RustCrypto. This PR leaves one e2e test ignored which will be resolved with CredentialAquisition. ---- ##### PR Submission Checklist for in...
diff --git a/crypto/src/mls_provider/crypto_provider.rs b/crypto/src/mls_provider/crypto_provider.rs index 25f73f49983..d5d662e2fe9 100644 --- a/crypto/src/mls_provider/crypto_provider.rs +++ b/crypto/src/mls_provider/crypto_provider.rs @@ -1,4 +1,4 @@ -use std::sync::{Arc, RwLock, RwLockWriteGuard}; +use std::sync::{A...
1
1
1
[{"id": "G0", "claim": "The `CRYPTO` singleton should probably be `pub(crate)` instead of `pub`, since it is not used outside of the `crypto` crate.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wireapp__core-crypto__1814
wireapp/core-crypto
1,814
defect
4818bbc56e35d96d12721156b1b5898f6129b0cb
c7790375adbcf5b286ac91c0f0bdae0f583cb6d6
chore: set unreachable_pub to deny
This also now makes it so that plain `cargo check` would catch those, not just `cargo doc`, which was the case so far.
diff --git a/Cargo.toml b/Cargo.toml index c90610e3859..b5e240f9cc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ missing_safety_doc = "deny" undocumented_unsafe_blocks = "deny" [workspace.lints.rust] +unreachable_pub = "deny" unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(wasm_bindgen_unst...
4
3
1
[{"id": "G0", "claim": "In crypto-ffi/src/credential.rs, `credential_basic` seems to be referenced only by `Credential::basic`, so it probably should not in fact be public.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The test modules this PR changed t...
null
wireapp__core-crypto__1951
wireapp/core-crypto
1,951
defect
7379e5b4e91d3bdf33ddff02c48525d77ed7a61d
4206907f34dd17b32d99445b844dda3b23d8f2e8
chore: add X509CredentialAcquisition
This PR adds a new type, `X509CredentialAcquisition` , that represents the credential acquisition process. This does not yet add the bindings nor modifies the `crypto` crate to make use of this functionality, those bits are coming in a later PR.
diff --git a/e2e-identity/src/acme/certificate.rs b/e2e-identity/src/acme/certificate.rs index 3ed82537e06..4d7220237c6 100644 --- a/e2e-identity/src/acme/certificate.rs +++ b/e2e-identity/src/acme/certificate.rs @@ -14,7 +14,7 @@ impl RustyAcme { /// see [RFC 8555 Section 7.4.2](https://www.rfc-editor.org/rfc/rfc...
1
1
0
[{"id": "G0", "claim": "The account is needlessly cloned before try_into() in the certificate request path.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wireapp__core-crypto__1993
wireapp/core-crypto
1,993
defect
cead069c5b6c46c8f6222b22aed1c25a92dae8e8
a6d7c0d6eb0d91f1a63c23da4579dfa18c6b45d9
test: convert more tests to use the new X509 acquisition process
This only leaves `should_fail_when_certificate_path_doesnt_contain_trust_anchor`, which requires changes to `PkiEnviroment` (we need to be able to configure trust anchors).
diff --git a/e2e-identity/src/acquisition/initial.rs b/e2e-identity/src/acquisition/initial.rs index 78a47d269a2..3b374cd6d4d 100644 --- a/e2e-identity/src/acquisition/initial.rs +++ b/e2e-identity/src/acquisition/initial.rs @@ -1,13 +1,11 @@ use std::sync::Arc; -use jwt_simple::prelude::{ES256KeyPair, ES384KeyPair,...
2
1
1
[{"id": "G0", "claim": "Asks whether the assertion that the certificate's public key matches the signing key is now done inside the acquisition flow, since the pull request removed the test-side assertion and the flow does not yet perform that check.", "category": "testing", "verdict": "supported", "priority": "P1", "s...
null
wireapp__core-crypto__2004
wireapp/core-crypto
2,004
defect
91ed59f4cd1deb4baa53943bc3df74c612211b95
78af92ef51f3bc41250bd1e0718e1be68a7421a7
feat: rework crl handling [WPB-19580]
# What's new in this PR - Make the necessary internal changes for new CRL handling procedure via `TransactionContext.check_credentials()`. - Remove `WelcomeBundle` Next steps (independent of each other): - wait for uniffi 0.30 upgrade to enable including `CredentialRef`s in the error variant returned by `check_cr...
diff --git a/Cargo.toml b/Cargo.toml index f22ea966c40..a7ba6e62e76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,6 +47,7 @@ derive_more = { version = "2.1", features = [ "as_ref", "deref", "deref_mut", + "into_iterator", ] } futures-util = "0.3" hex = "0.4" diff --git a/crypto-ffi/bindings/js/src/shared...
2
1
0
[{"id": "G0", "claim": "The trailing comment on the `from_der` line in `PkiEnvironment::trust_anchor` should be moved to the line above so the line is not excessively long, and it appears incorrect or stale.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G6", "c...
null
wireapp__core-crypto__2118
wireapp/core-crypto
2,118
defect
47ad5356c7ec113bb45333b05643960616611b91
5f005ef7fd7db129d9119c51a937ce2723394568
feat: serialise / deserialise acquisition flow [WPB-25018]
# What's new in this PR ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [ ] answers the question: _If merged, t...
diff --git a/Cargo.lock b/Cargo.lock index a3e48cc52ef..eb0819c8621 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6469,6 +6469,7 @@ checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" dependencies = [ "getrandom 0.4.1", "js-sys", + "serde_core", "sha1_smol", "wasm-bindgen", ] diff --g...
3
1
0
[{"id": "G0", "claim": "Deserializing only from states::DpopChallengeCompleted is fine as long as that is the only source, but attempting to deserialize from any other state would fail in a confusing way.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
wireapp__core-crypto__2150
wireapp/core-crypto
2,150
defect
9ff3765afeb844e5a841ef0c916e444ce8498755
3447031ca98ba8b43b032bb1e0288e83e8069641
feat: expose adding trust anchor / intermediate certificates on the FFI pki env
# What's new in this PR Expose adding trust anchor / intermediate certificates on the FFI pki env ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA...
diff --git a/crypto-ffi/src/pki_env.rs b/crypto-ffi/src/pki_env.rs index f8c5f91e112..d516baf009f 100644 --- a/crypto-ffi/src/pki_env.rs +++ b/crypto-ffi/src/pki_env.rs @@ -1,8 +1,9 @@ use std::{fmt, sync::Arc}; use wire_e2e_identity::pki_env; +use x509_cert::der::Decode as _; -use crate::{CoreCryptoFfi, CoreCryp...
3
2
1
[{"id": "G0", "claim": "The new public trust-anchor/intermediate FFI functions need documentation before approval - at least noting that a newly added trust anchor will silently overwrite the previous one.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "cla...
null
wireapp__core-crypto__317
wireapp/core-crypto
317
defect
f5e5714b4add9ed40769f881c577e1d6e21e45bc
0157d3fad23a1735be33e1bc79186a07ca794b09
chore: clippy for wasm
---- #### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [x] answers the question: _If merged, this PR will: ..._ ³ - The *...
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c4130143528..965cfb78874 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -54,6 +54,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo build --verbose - run: cargo clippy -- -D warnings + ...
2
2
2
[{"id": "G0", "claim": "Restore the intentional fallback to 0 for an unparsable version part, which the change to `.parse::<u32>()?` removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep `or_else` instead of `or` so system metrics are not fet...
null
wireapp__core-crypto__341
wireapp/core-crypto
341
defect
4525084a92a231eaa342270664f9a8736fc0159b
f0ea0d4499963cdeaeb20b2aa481499199e67690
feat!: PostQuantum Ciphersuite [WPB-2168]
Closes #240
diff --git a/Cargo.toml b/Cargo.toml index 85ce3936122..cdbe8196e10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ exclude = [ resolver = "2" [workspace.dependencies] -tls_codec = "0.3.0-pre.3" +tls_codec = "0.3.0-pre.4" [patch.crates-io.schnellru] git = "https://github.com/otak/schnellru" @@ -42,26...
1
1
1
[{"id": "G0", "claim": "get_or_create_client_keypackages generates key packages for only one credential type while a client can simultaneously hold a Basic and an X509 CredentialBundle, so it should be fixed by adding a credential_type argument.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
wireapp__core-crypto__352
wireapp/core-crypto
352
defect
e8c25883a6edc90a00dc4d437ef94b5f092649fa
bad930fc38d9c31ad3dc9606fc6968c196d07ba0
feat!: prevent conversation overwrite [WPB-2977]
---- #### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [x] contains a reference JIRA issue number like `SQPIT-764` - [x] answers the question: _If merged, this PR will: ..._ ³ - The *...
diff --git a/crypto-ffi/bindings/kt/main/com/wire/crypto/CoreCrypto.kt b/crypto-ffi/bindings/kt/main/com/wire/crypto/CoreCrypto.kt index 43ea06ca973..ac0a189879e 100644 --- a/crypto-ffi/bindings/kt/main/com/wire/crypto/CoreCrypto.kt +++ b/crypto-ffi/bindings/kt/main/com/wire/crypto/CoreCrypto.kt @@ -44,7 +44,7 @@ open ...
2
2
1
[{"id": "G0", "claim": "Consider outputting the conversation id in the ConversationAlreadyExists error's Display message (and likewise the ClientId in ClientNotFound), with the metadata-leakage-in-logs concern raised with rohan-wire.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
wireapp__core-crypto__435
wireapp/core-crypto
435
defect
9c1e20124165eaad0b6dc19d1ca9978db5c74e3b
fb36edc9fb8700f63da4bc3a3268697e2581fe03
build(deps): update tls_codec requirement from 0.3.0 to 0.4.0
Updates the requirements on [tls_codec](https://github.com/RustCrypto/formats) to permit the latest version. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/RustCrypto/formats/compare/tls_codec/v0.3.0...tls_codec/v0.3.0">compare view</a></li> </ul> </details> <br /> Dependab...
diff --git a/Cargo.toml b/Cargo.toml index 7dbcfee7359..5f219c9794e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ exclude = [ resolver = "2" [workspace.dependencies] -tls_codec = "0.3.0" +tls_codec = "0.4.0" [workspace.dependencies.uniffi] version = "0.24" @@ -49,25 +49,29 @@ branch = "2.x" packag...
1
1
1
[{"id": "G0", "claim": "tls_deserialize_exact should not be used outside of testing: it is designed for single-entity payloads and will break if the input has even one extra byte.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wireapp__core-crypto__437
wireapp/core-crypto
437
defect
9c1e20124165eaad0b6dc19d1ca9978db5c74e3b
15d2a372b7fc3d5c619ad2f67bd9315a8fd075ac
feat!: remove member from commit add
---- #### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [ ] answers the question: _If merged, this PR will: ..._ ³ - The *...
diff --git a/Cargo.toml b/Cargo.toml index 7dbcfee7359..796df05b53b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,7 +76,8 @@ branch = "wire/unstable-pq-xyber" [patch.crates-io.wire-e2e-identity] git = "https://github.com/wireapp/rusty-jwt-tools" package = "wire-e2e-identity" -branch = "main" +#branch = "main" +tag...
1
1
0
[{"id": "G0", "claim": "The bench could pre-allocate the vector with `Vec::with_capacity(i)` instead of an empty `vec![]`, using a little less memory.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wireapp__core-crypto__566
wireapp/core-crypto
566
defect
e6e20b810397ee1baf976cf0bc0682177ac859a1
843884a1a512641f794ce7577377c47a4054728a
chore: remove irrelevant TODOs and FIXMEs, or add tracking issue IDs [WPB-3373]
---- #### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [x] contains a reference JIRA issue number like `SQPIT-764` - [x] answers the question: _If merged, this PR will: ..._ ³ - The *...
diff --git a/.cargo/config.toml b/.cargo/config.toml index b042e8d94bb..0745c8486af 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -21,7 +21,7 @@ RANLIB_i686-linux-android = "llvm-ranlib" # ? the presence of a `.git` folder # ? With us having a git dependency to ring, this triggers this local development...
4
4
0
[{"id": "G0", "claim": "Since it is unclear what should even be defined for the `ByRef = 3` variant, the TODO comment (and its tracking-issue reference, which explains nothing) should be removed entirely.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
wireapp__core-crypto__612
wireapp/core-crypto
612
defect
bf1af6d1c56557dd723dd83d0b6dca4b652396b9
03dc086073e4ce012e0b8a96bf4023ed7eb30b59
ci: run custom benches in ci [WPB-10163]
# What's new in this PR See PR title/corresponding issue ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-764` - [ ] ans...
diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml new file mode 100644 index 00000000000..3b49b70d803 --- /dev/null +++ b/.github/workflows/benchmarks.yml @@ -0,0 +1,44 @@ +name: Continuous Benchmarks with Bencher +on: + push: + branches: + - develop + pull_request: + +jobs: + ...
1
1
0
[{"id": "G0", "claim": "The \"Test CoreCrypto benchmarks\" step (cargo nextest run --bench mls_proteus) in .github/workflows/rust.yml should be moved to the benchmark workflow as well.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wireapp__core-crypto__654
wireapp/core-crypto
654
defect
5f93f21b5aecd64fd6bfe0a1e18334c6315fe576
d770e6671c3b12703ccb8610b89c69599f6622ee
chore: update proteus version to latest tag
# What's new in this PR Update proteus dependency in CC to latest tag. ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [x] conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow² - [ ] contains a reference JIRA issue number like `SQPIT-7...
diff --git a/Cargo.lock b/Cargo.lock index 12808ef65cb..fc98db20ea8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -588,20 +588,22 @@ dependencies = [ [[package]] name = "cbor-codec" version = "0.7.1" -source = "git+https://github.com/wireapp/proteus?branch=2.x#eff38af53a19093c3ea11cd1cf0e238432f5fbe6" +source = "git+h...
3
2
0
[{"id": "G0", "claim": "Get rid of the proteus patch sections in the top-level Cargo.toml completely, pushing the otak/fix-1.0.3 patch down to the only crate that actually uses it (instead of a patch), ideally by updating cryptobox to use the otak/fix-1.0.3 branch.", "category": "maintainability", "verdict": "supported...
null
wireapp__core-crypto__785
wireapp/core-crypto
785
defect
0c0c954cebb1057b41ba855f62c25cd11493d8aa
4663da15b3ba68247e63f1ad0786c1ed802dbe54
chore: add transaction bench and web bench
# What's new in this PR Adds benches and runs them in CI. The benches were used for an investigation regarding transactions and group store. ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ supported in Wire's Github Wor...
diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml index 1790b214bd0..5f93dc4a4cc 100644 --- a/.github/workflows/bindings.yml +++ b/.github/workflows/bindings.yml @@ -126,6 +126,6 @@ jobs: cd crypto-ffi bun install cargo make wasm - bun run wdio + ...
2
2
0
[{"id": "G0", "claim": "The benchmark group name in the output does not make obvious which case is running, so the group should be created inside the transactional loop and named like `Decrypting {MESSAGE_COUNT} messages: {id}`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
wireapp__core-crypto__812
wireapp/core-crypto
812
defect
44f74a645118a07277a998d669be5d4a5b145be6
ca1598f573982fcd51bfa05f4c9df7746f1eafe4
fix: wait for current transaction to finish when creating a new one [WPB-14895]
Previously, an error was thrown when a new transaction was started and there was one in progress. This was not the intended behavior. # What's new in this PR See above ---- ##### PR Submission Checklist for internal contributors - The **PR Title** - [ ] conforms to the style of semantic commits messages¹ ...
diff --git a/crypto-ffi/bindings/js/CoreCrypto.ts b/crypto-ffi/bindings/js/CoreCrypto.ts index d2088fe1835..8aa4afe7b0d 100644 --- a/crypto-ffi/bindings/js/CoreCrypto.ts +++ b/crypto-ffi/bindings/js/CoreCrypto.ts @@ -1040,30 +1040,32 @@ export class CoreCrypto { callback: (ctx: CoreCryptoContext) => Promise<R>...
2
2
1
[{"id": "G0", "claim": "The pull request should include a test covering the behaviour it changes (waiting for the current transaction to finish instead of erroring).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test's mechanism is unexplained:...
null
wiredtiger__wiredtiger__11519
wiredtiger/wiredtiger
11,519
defect
3eef33c91c84c4ceb14db008ef4148be0b6231dc
46195e006d9b73f44805079c4e3620d659d25f81
WT-13948 Deprecate rollback_reason API
After milestone 2 and [WT-13947](https://jira.mongodb.org/browse/WT-13947) all rollback reason messages should have been covered by the get_last_error API. This ticket involves deprecating the rollback reason API. In this case, we should be changing all existing rollback_reason related tests to use the get_last_error A...
diff --git a/dist/s_void b/dist/s_void index 5fb5e144586..1aa36ee7004 100755 --- a/dist/s_void +++ b/dist/s_void @@ -90,7 +90,6 @@ func_ok() -e '/int __wt_stat_dsrc_desc$/d' \ -e '/int __wt_stat_session_desc/d' \ -e '/int __wt_txn_read_upd_list$/d' \ - -e '/int __wt_txn_rollback_requir...
6
5
1
[{"id": "G0", "claim": "Because eviction (including the app-assist path run by internal threads) may not track errors, session->err_info.err_msg can be absent or stale when the rollback-reason log lines print it, and it would be safer to log a fixed literal instead.", "category": "correctness", "verdict": "supported", ...
null
wiredtiger__wiredtiger__11524
wiredtiger/wiredtiger
11,524
defect
5d59dda4534bc95819d503dbeb7e5216bb938069
dc4d5254c7cc41146c374764798d63771ee7dc0a
WT-14069 Handle live restore worker getting EBUSY.
Here is the change to handle EBUSY. The branch for 14005 running with this change is passing the failing CONFIG.
diff --git a/src/live_restore/live_restore_server.c b/src/live_restore/live_restore_server.c index cc72f8c872c..ae89f3c7789 100644 --- a/src/live_restore/live_restore_server.c +++ b/src/live_restore/live_restore_server.c @@ -74,8 +74,12 @@ __live_restore_worker_stop(WT_SESSION_IMPL *session, WT_THREAD *ctx) static voi...
2
2
1
[{"id": "G0", "claim": "The verbose message logged when open_cursor fails should say it is an error, e.g. \"Live restore worker: Error opening cursor to %s. ret = %d\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reinserting a busy work item an...
null
wiredtiger__wiredtiger__11724
wiredtiger/wiredtiger
11,724
defect
ed0a15e99b495d194b404e263a1fad4447dad265
ee09f7a917563f35cff951cccff73f3287758325
SLS-1449 Make layered cursors work with step-up.
There are a few parts to the changes: - Each layered cursor makes independent decisions about what to open/reopen on a state change. - After picking up a checkpoint, we must invalidate any dhandle related to that metadata. This is needed because when we step up, we'll need to open the main dhandle (not at a checkpoin...
diff --git a/src/conn/conn_dhandle.c b/src/conn/conn_dhandle.c index 3eb6b2d6368..1ccf6c41b0c 100644 --- a/src/conn/conn_dhandle.c +++ b/src/conn/conn_dhandle.c @@ -284,7 +284,7 @@ __wt_conn_dhandle_find(WT_SESSION_IMPL *session, const char *uri, const char *ch bucket = __wt_hash_city64(uri, strlen(uri)) & (conn->...
7
7
3
[{"id": "G0", "claim": "The new comment in __disagg_pick_up_checkpoint is missing a word: 'it out of date' should read 'it is out of date'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to have statistics about how often the stab...
null
wiredtiger__wiredtiger__11788
wiredtiger/wiredtiger
11,788
defect
a27a3cbabfb7c7e22d497efc3258751f775424a6
c278d7b6d92265ad36610bee07148e893b4e9b3d
SLS-1397 Skip writing empty delta
This change uses a different approach. In the previous approach, I used an internal error to interrupt the reconciliation flow if we skip writing an empty delta. However, it is a hack and it generates a fallout on mongod due to an unknown problem. In the new approach, what I do is to copy the previous written dis...
diff --git a/src/btree/bt_split.c b/src/btree/bt_split.c index 7b633284e99..5cfde33919e 100644 --- a/src/btree/bt_split.c +++ b/src/btree/bt_split.c @@ -1683,9 +1683,9 @@ __split_multi_inmem_fail(WT_SESSION_IMPL *session, WT_PAGE *orig, WT_MULTI *mult */ int __wt_multi_to_ref(WT_SESSION_IMPL *session, WT_REF *old_r...
3
3
1
[{"id": "G0", "claim": "The comment above the if/else block in __wt_multi_to_ref should be updated to also describe the new one-to-one-rewrite case added by this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The URIs in test_layered...
null
wiredtiger__wiredtiger__11796
wiredtiger/wiredtiger
11,796
defect
97f4636608b685a142e8afb5ed2ec9544dd04fca
5c346a0b9bb1c602c2b0008d8064ab2c0000a493
SLS-760 Fix __assert_ckpt_matches failure
As part of this, fix uses of WT_DHANDLE_OUTDATED, and eliminate uses of config=force in favor of the outdated mechanism.
diff --git a/src/conn/conn_dhandle.c b/src/conn/conn_dhandle.c index 1ccf6c41b0c..338c2ac2b16 100644 --- a/src/conn/conn_dhandle.c +++ b/src/conn/conn_dhandle.c @@ -305,6 +305,34 @@ __wt_conn_dhandle_find(WT_SESSION_IMPL *session, const char *uri, const char *ch return (WT_NOTFOUND); } +/* + * __wt_conn_dhandle...
2
2
0
[{"id": "G0", "claim": "Restore the blank line after WT_ERR(ret) in __wt_hs_find_upd that this pull request removed, because it makes clear the block comment below applies to the code underneath it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wiredtiger__wiredtiger__11831
wiredtiger/wiredtiger
11,831
defect
3e7bb22d46132524a66d972046d9d87691e72ef0
a27c65d8c6f942591dded5b9d71f0749f20161ee
WT-10792 csuite tests take absolute and relative path home dir
**tl;dr** - `random_abort`, `timestamp_abort`, `schema_abort`, `random_directio` and other csuite tests are now able to take absolute and relative path arguments when specifying a database home directory with the `-h` flag, and leave no test artefacts after the test concludes. The original (undocumented) assumption ...
diff --git a/bench/tiered/push_pull.c b/bench/tiered/push_pull.c index 45768c97df8..822a2cd6715 100644 --- a/bench/tiered/push_pull.c +++ b/bench/tiered/push_pull.c @@ -295,7 +295,8 @@ recover_validate(const char *home, uint32_t num_records, uint64_t file_size, uin /* Copy the data to a separate folder for debuggi...
13
11
1
[{"id": "G0", "claim": "The new cleanup block in random_abort may also need a testutil_remove(buf) call, as random_directio has.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Missing period after \"execution\" in the testutil_clean_test_artifacts doc...
null
wiredtiger__wiredtiger__11861
wiredtiger/wiredtiger
11,861
defect
b92aaa625892a67563c90b82789cda7452cd96d2
24bccda4a9e93a7977ea334c69deefea76543a0b
WT-14393 Implement new crashpoints controlled by debug.checkpoint_crash_point config
This pull request implements two new crash points (after the log flush and after metadata sync) controlled by the debug.checkpoint_crash_point configuration to simulate and investigate crashes happening after the checkpoint log flush.
diff --git a/src/checkpoint/checkpoint.h b/src/checkpoint/checkpoint.h index a2b453e5a17..a1a4d1b9287 100644 --- a/src/checkpoint/checkpoint.h +++ b/src/checkpoint/checkpoint.h @@ -23,6 +23,11 @@ struct __wt_ckpt_session { /* Checkpoint crash. */ u_int crash_point; /* Crash point in the middle of checkpoint...
2
2
1
[{"id": "G0", "claim": "The new CKPT_CRASH_BEFORE_CKPT_STOP crash point fires after the turtle file is updated, and there should be no crash points that late because once the turtle file is updated the checkpoint is complete on disk; the crash-point semantics must keep the checkpoint incomplete so it is ignored in reco...
null
wiredtiger__wiredtiger__11891
wiredtiger/wiredtiger
11,891
defect
9ac5ac7a77cf15310c17d66077399a4088ddeda9
0e782b83d83d6aec1fdf6a6e953cace64d3059f0
WT-14127 Switch over to V5 toolchain within all supported machines
The pull request changes switches all testing machines to use the new V5 toolchain. Here are a few technical changes that were needed to accommodate this change: - Remove msan_suppression_wrappers.c because WiredTiger's minimum LLVM version is now greater than 14 (WT-13103). - Update clang scan diff to accomodate for...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5273092ef48..b2c0112ca3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,9 +142,6 @@ add_subdirectory(ext) # Collect all the library sources we need to compile from the source filelist. parse_filelist_source(${CMAKE_CURRENT_LIST_DIR}/dist/filelist wt_sources...
5
3
1
[{"id": "G0", "claim": "Also remove the other FIXME-WT-11788 entries in test/evergreen/configure_combinations.sh and cmake/strict/strict_flags_helpers.cmake (lines 128-129) for consistency with this PR's removal.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "...
null
wiredtiger__wiredtiger__11893
wiredtiger/wiredtiger
11,893
defect
5e2791a76a7cb0c445a1d9bd9f2ebcfc04504135
88f7975500ddfb2490fbf5d57cfe1a926545cf33
WT-14530 test format initial changes for SLS
This includes: - an initial CONFIG.disagg file to get us started with testing - an evergreen task (not enabled for PRs) that can be run to get disagg runs of test/format - A fix to disagg code to handle test/formats mode of operation: 1) wiredtiger_open with "create" to do initial creation of connection 2) close co...
diff --git a/src/conn/conn_layered.c b/src/conn/conn_layered.c index 80b3c7b7ba5..81ffdf4af63 100644 --- a/src/conn/conn_layered.c +++ b/src/conn/conn_layered.c @@ -15,6 +15,44 @@ static int __layered_track_checkpoint(WT_SESSION_IMPL *session, uint64_t checkpo static int __layered_last_checkpoint_order( WT_SESSION_...
10
9
3
[{"id": "G0", "claim": "When restarting without \"create\" in leader mode, checkpoint_id should be set from the last completed checkpoint and __disagg_pick_up_checkpoint called with it, so the checkpoint is actually picked up as mongod does, and a comment should explain that mongod never runs in leader mode.", "categor...
null
wiredtiger__wiredtiger__11963
wiredtiger/wiredtiger
11,963
defect
9646ff2464ec0cf662904a32661b3789bf5aa6fb
a5ea40f78d0dd0e543e5f0b5ba8ec3a2baf620be
WT-14039 avoid double eviction with scrub eviction
This change updates the code for scrub eviction, to avoid double evicting a page when the cache is under pressure. It is currently possible for a dirty page to be scrub evicted and read back in the cache, then clean evicted afterwards. To avoid this, a condition has been added to skip scrub eviction unless either clean...
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index e7cf053bca2..ed8c3bac764 100644 --- a/src/evict/evict_lru.c +++ b/src/evict/evict_lru.c @@ -732,7 +732,7 @@ __evict_update_work(WT_SESSION_IMPL *session) LF_SET(WT_EVICT_CACHE_DIRTY); /* - * Scrub dirty pages and keep them in cache if ...
4
3
1
[{"id": "G0", "claim": "Add a description of what the new test does to test_scrub_eviction_conditions.py.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should simply be named test_eviction0x and placed in the eviction test suite instead ...
null
wiredtiger__wiredtiger__11970
wiredtiger/wiredtiger
11,970
defect
f2a026728fd48dd856ce9a0e54604ab65f982fa6
e69bb25c28e3abfab0093fb20fc24d821708cd94
WT-11813 Add stats for eviction walk strategy for page with updates
Currently, we update the stat `eviction_target_strategy_dirty` when WT_CACHE_EVICT_UPDATES is set which is misleading because there are 2 other cache evict states which is WT_CACHE_EVICT_DIRTY and WT_CACHE_EVICT_CLEAN. This PR addresses the logic issue by renaming `eviction_target_strategy_both_clean_and_dirty` to `...
diff --git a/dist/stat_data.py b/dist/stat_data.py index 4a631d0bf4c2..eecbe9fafe82 100644 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -359,9 +359,9 @@ def __init__(self, name, desc, flags=''): EvictStat('eviction_slow', 'eviction server unable to reach eviction goal'), EvictStat('eviction_stable_state...
3
2
1
[{"id": "G0", "claim": "In __evict_get_min_pages, when none of WT_EVICT_CACHE_DIRTY, WT_EVICT_CACHE_CLEAN or WT_EVICT_CACHE_UPDATES is set, it is possible that no strategy stat is incremented at all.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Wi...
null
wiredtiger__wiredtiger__11990
wiredtiger/wiredtiger
11,990
defect
dfe4de8a50cbf0a609328a7e696cd78f91f5c917
90c3345153c66573414483785c8b988411cfae5d
WT-14270 Fix modifications vector reconstruction
Fix for the memory leak that was detected during format testing. While trying to read an overflow page with `WT_UPDATE_MODIFY` enabled there can be a race with checkpoint reconciliation removing the overflow items, so we need to retry collecting modifications since reconciliation would store a complete update to the...
diff --git a/src/support/modify.c b/src/support/modify.c index f455db8e9c8..b8ad20f4c4c 100644 --- a/src/support/modify.c +++ b/src/support/modify.c @@ -417,6 +417,7 @@ __wt_modify_reconstruct_from_upd_list(WT_SESSION_IMPL *session, WT_CURSOR_BTREE WT_ASSERT(session, modify->type == WT_UPDATE_MODIFY); curso...
2
2
0
[{"id": "G0", "claim": "Move the __wt_update_vector_init call from line 420 to after the early-return checks (after line 436) so the vector is not initialized when the function returns early on the WT_RET path.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
wiredtiger__wiredtiger__12036
wiredtiger/wiredtiger
12,036
defect
7b0837d7e6442f78e8ad1eb75149297d49343d29
dc62c6b20fee613ad16c787922a42abc19f12a57
WT-14807 Increase the granularity of msec and usec latency histograms
Split the large gap 1000-9999us in the histogram into 1000-2499, 2500-4999, and 5000-9999 buckets to provide better granularity. Also split up the <10ms bucket in the msec granularity histograms to provide better granularity for fast operations, such as file system reads and writes on NVMe media.
diff --git a/dist/stat_data.py b/dist/stat_data.py index 98aec5b4e93..01773b9f45c 100755 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -682,19 +682,23 @@ def __init__(self, name, desc, flags=''): PerfHistStat('perf_hist_bmwrite_latency_lt500', 'block manager write latency histogram (bucket 5) - 250-499ms'), ...
1
1
1
[{"id": "G0", "claim": "Make the same granularity change for millisecond-granular histograms, because the 1ms to 10ms bucket is too coarse to see interesting things.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wiredtiger__wiredtiger__12123
wiredtiger/wiredtiger
12,123
defect
6d821bc226c0eda4116cbb95310ed3b226ffa673
69544c67278571c100c9a60efd7f6b41ec760357
WT-14970 Split single prepare_ts/id into start_prepare_ts/id and stop_prepare_ts/id
- Split single prepare_ts/id into start_prepare_ts/id and stop_prepare_ts/id - Update cell packing/unpacking logic to handle separate prepared information - Update time window validation to handle new prepared information structure
diff --git a/src/btree/bt_page.c b/src/btree/bt_page.c index f086c6ebe51e..c4f960db78a1 100644 --- a/src/btree/bt_page.c +++ b/src/btree/bt_page.c @@ -419,7 +419,15 @@ __page_reconstruct_leaf_delta(WT_SESSION_IMPL *session, WT_REF *ref, WT_ITEM *de standard_value->txnid = unpack.tw.start_txn; ...
13
11
3
[{"id": "G0", "claim": "The in-progress check in __page_inmem_prepare_update should test whether the start is prepared (WT_TIME_WINDOW_HAS_START_PREPARE), and a TODO should be added for simplifying it once the code is aligned.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
wiredtiger__wiredtiger__12136
wiredtiger/wiredtiger
12,136
defect
c16e697be109b87835c72aa6c656e587c6d6e354
0b9e238b1416474bc5f5c749ad87cc6a6f18c4e5
WT-14988 Implement get page id function in PALM
This PR creates a function in PALM that retrieves page ids for all full pages for a given checkpoint, the purpose for this function is to verify all discard operations have successfully gone through.
diff --git a/ext/page_log/palm/palm.c b/ext/page_log/palm/palm.c index 2cbc1a605bf..8d71270fdd4 100644 --- a/ext/page_log/palm/palm.c +++ b/ext/page_log/palm/palm.c @@ -916,6 +916,21 @@ palm_handle_put(WT_PAGE_LOG_HANDLE *plh, WT_SESSION *session, uint64_t page_id, } ...
19
17
4
[{"id": "G0", "claim": "The empty-database case should be handled deliberately: return WT_NOTFOUND with an empty item rather than EINVAL, so verify can be run on tables with no pages (as randomized tests would).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
wiredtiger__wiredtiger__12143
wiredtiger/wiredtiger
12,143
defect
a06f972f450b20a556e1983e28ad44e7d57c8127
8f953474467b9a5768be8fcf9383d1e333631237
WT-14394 Enable connection level logging in test/model
Allow connection level logging in test/model with 50% probability.
diff --git a/test/model/src/driver/kv_workload_generator.cpp b/test/model/src/driver/kv_workload_generator.cpp index dde1be6732b..d320ef28975 100644 --- a/test/model/src/driver/kv_workload_generator.cpp +++ b/test/model/src/driver/kv_workload_generator.cpp @@ -72,6 +72,8 @@ kv_workload_generator_spec::kv_workload_gener...
5
4
2
[{"id": "G0", "claim": "The connection-level logging configuration is only generated when the -g flag (generate_timing_stress_configurations) is passed, so logging is not enabled as this change intends.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": ...
null
wiredtiger__wiredtiger__12144
wiredtiger/wiredtiger
12,144
defect
cbb3054f9e343caae503dc11a1b157278dc86653
4ad3e2ae609e6953e1e833d2546970cd135c7d00
WT-14932 Build Framework for Unique WT Verbose IDs
This pull request introduces a system for adding unique, structured IDs to WiredTiger verbose log messages, enhancing log readability, searchability, and analysis. Why this change? Currently, verbose log messages lack unique identifiers, making it challenging to programmatically track specific log events across dif...
diff --git a/dist/s_define.list b/dist/s_define.list index 31b48fe8576..6f1301184bd 100644 --- a/dist/s_define.list +++ b/dist/s_define.list @@ -143,5 +143,6 @@ __wt_checksum_with_seed __wt_conf_gets __wt_verbose_error __wt_verbose_level +__wt_verbose_level_worker __wt_verbose_level_multi wt_shared diff --git a/sr...
2
2
0
[{"id": "G0", "claim": "The redundant explanatory comment about multi_category being a ternary should be removed from __wt_verbose_level_multi_id, since it already exists in the other function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
wiredtiger__wiredtiger__12158
wiredtiger/wiredtiger
12,158
defect
65da7cbaa2f64cbc56a6b54a3ba3e891e6a259c7
93a42b986755ec7b4042c7141c121c0ee9a26b1f
WT-14542 Enable caching for layered cursors and their constituents in WT
The PR adds code to track how long applications and internal threads are spending opening cursors. It also enables cursor caching for layered cursors and it's constituent cursors (ingest and shared cursors). Here are the technical change to support cursor layered cursors: - Update the cursor->close() to accomodate ...
diff --git a/dist/stat_data.py b/dist/stat_data.py index 6a70b83b5b2..bdfbac971ff 100755 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -1212,6 +1212,8 @@ def __init__(self, name, desc, flags=''): CursorStat('cursor_next_skip_lt_100', 'cursor next calls that skip greater than 1 and fewer than 100 entries'), ...
9
7
2
[{"id": "G0", "claim": "Asks whether the new cursor-open timing statistics are wanted in production or were only done for debugging purposes.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The owner cacheability check (the `if (owner != NULL)` statement) i...
null
wiredtiger__wiredtiger__12163
wiredtiger/wiredtiger
12,163
defect
3c1853bd47791901e142636301925b3de5c3fc39
3d4d6b83b2bd4bd8d629c015e1d44227f7915db8
WT-15050 Remove prepare flag from time window structure
This PR removes prepare flag from time window structure: - Replace boolean prepare flag with explicit prepare timestamp/ID checks - Simplify time window visibility logic using WT_TIME_WINDOW_HAS_PREPARE macros - Update cell packing to maintain backward compatibility for preserve_prepared config - Ensure prepare_t...
diff --git a/src/btree/bt_curnext.c b/src/btree/bt_curnext.c index f7b8b9317dd..6cef66c8b7d 100644 --- a/src/btree/bt_curnext.c +++ b/src/btree/bt_curnext.c @@ -380,7 +380,8 @@ __cursor_var_next( */ cbt->cip_saved = cip; if (rle > 1 && - __wt_txn_visible_all(session, unpack.tw.start...
15
14
2
[{"id": "G0", "claim": "Passing WT_MAX(unpack.tw.durable_start_ts, unpack.tw.start_prepare_ts) to __wt_txn_visible_all is not required because __wt_txn_visible_all already checks the prepared state and should return false for prepared updates.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "...
null
wiredtiger__wiredtiger__12208
wiredtiger/wiredtiger
12,208
defect
8788b675a0061f6a9232f71dc655d372215690ea
f5759b4e10339c85e9bf0520b1ad3d54dd3c8184
WT-14875 Create a macro to check default session
In the current codebase, a few places have the check of `session->id` value against 0 as a measure to determine whether it's a default session or not. It's not intuitive to understand and usually requires an additional comment to describe the intention. This PR introduces a new macro to perform the default session ch...
diff --git a/src/checkpoint/checkpoint_txn.c b/src/checkpoint/checkpoint_txn.c index 6ed04de4c43..ce9949e1b31 100644 --- a/src/checkpoint/checkpoint_txn.c +++ b/src/checkpoint/checkpoint_txn.c @@ -856,9 +856,9 @@ __checkpoint_prepare(WT_SESSION_IMPL *session, bool *trackingp, const char *cfg[ /* * Save the c...
4
4
0
[{"id": "G0", "claim": "The new macro should start with the WT_ prefix, as per project naming convention (IS_DEFAULT_SESSION should be WT_...).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Per the WT_{module_name}_xxx convention, the macro sho...
null
wiredtiger__wiredtiger__12229
wiredtiger/wiredtiger
12,229
defect
55827dee4d6e581e2a4a3461d95103bfabcf9912
5284ff316b6a2fc25449789c8e24d4f864eb8c76
WT-14931 Enable the preserve prepared config in test/format and test/checkpoint
Enable the preserve prepared config in test format and test checkpoint. Set prepared id and rollback timestamps for prepared transactions.
diff --git a/test/evergreen.yml b/test/evergreen.yml index 0f08587723c..b85fef99ece 100644 --- a/test/evergreen.yml +++ b/test/evergreen.yml @@ -3804,7 +3804,7 @@ tasks: commands: - func: "run data validation stress test checkpoint" vars: - run_test_checkpoint_args: -x -C cache_size=1000MB...
4
3
3
[{"id": "G0", "claim": "Test format must be changed to add the preserve_prepared config, the existing code that skips prepared when precise checkpoint is enabled must be removed, and preserve_prepared must not run when precise checkpoint is not enabled.", "category": "correctness", "verdict": "supported", "priority": "...
null
wiredtiger__wiredtiger__12234
wiredtiger/wiredtiger
12,234
defect
823a41242aa0ef09d08610a21840d429c99545fd
0e5487424e8c9abd95d4fc1d2bb95c11a443414b
WT-15167 Refactor to make __wt_page_block_meta a pointer on the page and introduce __wt_page_disagg_info
The aim of this pr is to wrap everything needed for disagg on a page to the same structure. So we can save memory for the non-disagg case as they are not needed.
diff --git a/src/block_disagg/block_disagg_read.c b/src/block_disagg/block_disagg_read.c index 9cf13e86fec..2c6e55cf014 100644 --- a/src/block_disagg/block_disagg_read.c +++ b/src/block_disagg/block_disagg_read.c @@ -78,8 +78,7 @@ __block_disagg_read_multiple(WT_SESSION_IMPL *session, WT_BLOCK_DISAGG *block_di W...
7
5
3
[{"id": "G0", "claim": "It would be better to change the API to pass the delta count as uint8 instead of uint32, in a separate ticket.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The size incremented for the disaggregated structure in __wt_page_alloc ...
null
wiredtiger__wiredtiger__12276
wiredtiger/wiredtiger
12,276
defect
8847f234ada7853b253b54edefaba95dd2c02eac
cd6a3c09fda63bb2c778196220727fa91a7c671d
WT-15238 Fix prepared commit and rollback race with reconciliation
Change the way we handle prepared commit and rollback. It will no longer mark anything to be deleted from the history store. It will just append the history store record to the update chain if necessary and resolve the prepared updates. Reconciliation will handling deleting the updates from the history store and insert...
diff --git a/src/btree/row_modify.c b/src/btree/row_modify.c index 42124865611..2fbad1ad380 100644 --- a/src/btree/row_modify.c +++ b/src/btree/row_modify.c @@ -429,7 +429,7 @@ __wt_update_obsolete_check( first = NULL; /* Cannot truncate the updates if we need to remove the updates from the hist...
5
3
1
[{"id": "G0", "claim": "Using the new WT_UPDATE_HS_MAX_STOP flag at the obsolete-check site that still removes updates from the history store may be confusing, so the flag name may need reconsidering.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wiredtiger__wiredtiger__12284
wiredtiger/wiredtiger
12,284
defect
cbf6f6d242460a35a3e2e4cd8fbcaff88633b152
227dc739c9273799a454230759bd9725204fc790
WT-15230 Disable RTS when precise checkpoint is on
Before test_prepare_discover01 would fail because RTS will rollback all prepared transactions. This PR disables RTS when precise checkpoint is on, and fixes prepare_rollback_tombstone reset logic so that prepare discover cursor can work properly with this setting.
diff --git a/src/reconcile/rec_visibility.c b/src/reconcile/rec_visibility.c index 733dc917827..44a723132eb 100644 --- a/src/reconcile/rec_visibility.c +++ b/src/reconcile/rec_visibility.c @@ -728,12 +728,6 @@ __rec_upd_select(WT_SESSION_IMPL *session, WTI_RECONCILE *r, WT_UPDATE *first_up break; ...
4
3
0
[{"id": "G0", "claim": "The precise checkpoint config cannot change after startup, so reading WT_CONN_PRECISE_CHECKPOINT with the atomic F_ISSET_ATOMIC_32 is unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The two F_ISSET calls should be merg...
null
wiredtiger__wiredtiger__12302
wiredtiger/wiredtiger
12,302
defect
4d661b8621aac4f7f910426e007ac6724a6698f9
c150b61fffc2a01c7422d73b008bde60b6569f7e
WT-15210 Add scrub eviction feature flag changes
This uses the new eviction_control feature flags and adds a toggle that allows scrub eviction as long as we are less than half way to the clean cache trigger. It no longer looks at dirty and update triggers as metrics to allow or prevent the retention of clean pages in cache.
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index 43245e9b7c0..d0403173fbb 100644 --- a/src/evict/evict_lru.c +++ b/src/evict/evict_lru.c @@ -798,13 +798,20 @@ __evict_update_work(WT_SESSION_IMPL *session, bool *eviction_needed) * because the cost of retrieving a recently reconciled page is higher ...
1
1
1
[{"id": "G0", "claim": "The new scrub-under-target optimizations should be enabled by default (instead of defaulting to false) unless they would impact a wide range of production clusters, with the change noted in the WT release notes and shared with TS when backported.", "category": "design", "verdict": "supported", "...
null
wiredtiger__wiredtiger__12306
wiredtiger/wiredtiger
12,306
defect
1a45a051cdec89eb873e3fbe0fc4ccf435e9b591
651215b039ffb69ee16f1b6634b3624b6e6a8296
WT-14705 Create a verification routine for page discard
This PR adds a verify routine for page discard to ensure the relevant pages have been successfully deleted and no incorrect deletes were made during the process.
diff --git a/ext/page_log/palm/palm_kv.c b/ext/page_log/palm/palm_kv.c index 88c59de1e62..6db22f4ac9d 100644 --- a/ext/page_log/palm/palm_kv.c +++ b/ext/page_log/palm/palm_kv.c @@ -477,7 +477,7 @@ palm_kv_get_page_ids( *size = count; - return (ret); + return (0); } int diff --git a/src/block_disagg/b...
17
15
3
[{"id": "G0", "claim": "Do not unconditionally return 0 at the end of palm_kv_get_page_ids; keep returning the error code, resetting it to 0 only when it is MDB_NOTFOUND so real errors are not masked.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reform...
null
wiredtiger__wiredtiger__12307
wiredtiger/wiredtiger
12,307
defect
f5caf1d474f608520467c300460fedb4e6c040fe
3da2b3a9cba402aecca585f54e2ba791162f7540
WT-15086 Fix eviction thread panic during connection close with disagg enabled
Creating a checkpoint in WiredTiger with attached storage results in creating a checkpoint, even if the only change to the database was advancing the stable timestamp—even though there were no changes to the data. This PR brings the same semantics to WiredTiger for diaggregated storage to result in having consistent be...
diff --git a/src/block_disagg/block_disagg_ckpt.c b/src/block_disagg/block_disagg_ckpt.c index 55dfdd9b30a..1dc0d9c150b 100644 --- a/src/block_disagg/block_disagg_ckpt.c +++ b/src/block_disagg/block_disagg_ckpt.c @@ -110,17 +110,15 @@ __wti_block_disagg_checkpoint_resolve(WT_BM *bm, WT_SESSION_IMPL *session, bool ...
2
2
0
[{"id": "G0", "claim": "Return early with ENOTSUP when disagg is not configured in __disagg_put_meta, so the put logic does not need to be wrapped in the if section.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When checkpoint_root is NULL, al...
null
wiredtiger__wiredtiger__12320
wiredtiger/wiredtiger
12,320
defect
4d661b8621aac4f7f910426e007ac6724a6698f9
ab618836af37fac58ed5e8ded12fa05fd0f00355
WT-15350 Move feature flag from connection.h to cache.h
Summarize the reason behind this change (this might be the problem you're solving, or the context around the request) and the solution you have chosen.
diff --git a/src/conn/conn_api.c b/src/conn/conn_api.c index c39c756e5282..11d6900ce8ff 100644 --- a/src/conn/conn_api.c +++ b/src/conn/conn_api.c @@ -2317,12 +2317,12 @@ __wti_cache_eviction_controls_config(WT_SESSION_IMPL *session, const char *cfg[] WT_RET( __wt_config_gets(session, cfg, "cache_eviction_c...
3
3
2
[{"id": "G0", "claim": "The cache_eviction_controls field in struct __wt_cache should be an embedded member, not a pointer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The flags field of WT_CACHE_EVICTION_CONTROLS should be made 32 bits if it would be...
null
wiredtiger__wiredtiger__12348
wiredtiger/wiredtiger
12,348
defect
c736c8809f07e19114ca46fb8ddb16addf3558c4
a7f5e9219fdd2690a556b64d31fbaaa1f5556a61
WT-15299 Use checkpoint's pinned id for visibility in eviction for precise checkpoint
The previous code only considers the checkpoint id for eviction. However, what really matters is the checkpoint's snapshot. When precise checkpoint is enabled, ideally we should use checkpoint's snapshot for the eviction threads. However, that is difficult because of the checkpoint can concurrently release its snapshot...
diff --git a/src/btree/row_modify.c b/src/btree/row_modify.c index 2b6110e70d9..ccbf6e6bf6e 100644 --- a/src/btree/row_modify.c +++ b/src/btree/row_modify.c @@ -417,7 +417,7 @@ __wt_update_obsolete_check( */ if (__wt_txn_upd_visible_all(session, upd) || (F_ISSET(CUR2BT(cbt), WT_BTREE_GARBA...
3
2
0
[{"id": "G0", "claim": "Test coverage of the added and changed code is very low (64% line, 63% branch) and should be improved if feasible; the PR also touches extremely high-complexity methods.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment ...
null
wiredtiger__wiredtiger__12351
wiredtiger/wiredtiger
12,351
defect
0be054f3b344a0c98e8928c5f6e1800f7e303a8c
c8b55dff0f84da406d27fbb73d5858ccf85ea976
WT-15352 Use atomic ops for shared doubles
Currently shared doubles that could cause data races still use plain load/stores since it wasn't clear what API can we use for these cases. This PR is an attempt to start using atomic operations in that cases.
diff --git a/src/checkpoint/checkpoint_txn.c b/src/checkpoint/checkpoint_txn.c index 31fa0778ab7..b6b472e6b96 100644 --- a/src/checkpoint/checkpoint_txn.c +++ b/src/checkpoint/checkpoint_txn.c @@ -505,7 +505,7 @@ __wt_checkpoint_get_handles(WT_SESSION_IMPL *session, const char *cfg[]) static WT_INLINE void __checkpoi...
3
1
0
[{"id": "G0", "claim": "The 'per the comment above' phrase in the new MSVC double-function doc comments is inaccurate and the stale phrase should be removed or the comment reworded.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer would...
null
wiredtiger__wiredtiger__12358
wiredtiger/wiredtiger
12,358
defect
d9d34bc786dff17beee6421e624563ea5c863992
dd1eaa35898d2bd122a904daf7136902470906d3
WT-15198 Data Validation for Leader/Follower Mode in Disagg (test/format)
This PR enables mirrored tables in test/format (for disagg leader/follower mode). We now create two tables and, after writing data to both, verify that their contents match. This provides strong correctness testing. The key improvement is that we mirror against a non-layered table, allowing us to validate all disagg...
diff --git a/test/checkpoint/checkpointer.c b/test/checkpoint/checkpointer.c index cafce17877a..32205e47867 100644 --- a/test/checkpoint/checkpointer.c +++ b/test/checkpoint/checkpointer.c @@ -331,7 +331,7 @@ real_checkpointer(THREAD_DATA *td) goto done; /* Verify the checkpoint we just wrote. *...
2
1
1
[{"id": "G0", "claim": "The draft conditional that skips the verify assertion for all disagg configurations should be replaced with a better conditional that tolerates ENOENT on followers (whose stable table may be empty until the first checkpoint) and is linked to a FIXME ticket.", "category": "correctness", "verdict"...
null
wiredtiger__wiredtiger__12380
wiredtiger/wiredtiger
12,380
defect
ff58611f2a2dc2d4b89256c6803913cc74c3897c
3c88dc21e555da10e34ed274bd1ea0053446bef6
WT-15426 Keep a log of errors to pinpoint the origin of the error
Keep a "stack trace" of errors—called the error log—processed by `WT_ERR`, `WT_RET`, and their variants, so that we can easily pinpoint origins of errors. The error log is enabled only in the diagnostic mode (to avoid performance penalty for production), maintained per thread, and cleared on API entry. The error log ca...
diff --git a/dist/s_define.list b/dist/s_define.list index 5fbb953c5fe..1be71ffc788 100644 --- a/dist/s_define.list +++ b/dist/s_define.list @@ -1,6 +1,7 @@ # List of WiredTiger #defines that are "unused", but it's OK. API_CALL API_CALL_NOCONF +API_CALL_NOCONF_NOERRCLEAR API_END API_END_STAT API_SESSION_INIT @@ -...
17
12
1
[{"id": "G0", "claim": "If WiredTiger calls the cursor API internally, it must not clear the error log.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There is no proper handling for the case where an internal caller expects an error condition (e.g....
null
wiredtiger__wiredtiger__12382
wiredtiger/wiredtiger
12,382
defect
87eb52437c62e5e805e7e955e9e24868025dc4e2
6bedae675d413ec6ee96b8ed552b0e195d6cc5b7
WT-15415 Create a new reconciliation failpoint after disk image built
Reconciliation can fail in multiple places - we want to create a failpoint so that it's easier to catch similar issues in the future.
diff --git a/dist/api_data.py b/dist/api_data.py index 0921200207a..640b07b3613 100755 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -948,12 +948,12 @@ def __ge__(self, other): 'checkpoint_handle', 'checkpoint_slow', 'checkpoint_stop', 'commit_transaction_slow', 'compact_slow', 'conn_close_stress_l...
1
1
1
[{"id": "G0", "claim": "The new reconciliation failpoint should return EBUSY, which is a recoverable failure, instead of WT_ERROR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wiredtiger__wiredtiger__12384
wiredtiger/wiredtiger
12,384
defect
61d4086168cdf12f1c2863f6d88f2b5c8d3ea8a6
dcfe42709ff1e826915ec3dcc7cd63ec8e262eb2
WT-15003 Remove the WT_DELTA_CELL_INT structure and pack internal page deltas with WT_CELL
This pull request has the following changes Replaced the flag WT_DELTA_INT_IS_DELETE with WT_CELL_ADDR_DEL_VISIBLE_ALL throughout the codebase. Replaced WT_DELTA_CELL_INT structure and packing/unpacking the internal delta into WT_CELL structure Removed the WT_DELTA_CELL_INT struct and its typedef. Updated packing...
diff --git a/src/btree/bt_page.c b/src/btree/bt_page.c index e0f318e9546..14e363e11d3 100644 --- a/src/btree/bt_page.c +++ b/src/btree/bt_page.c @@ -173,7 +173,7 @@ __page_merge_internal_delta_with_base_image(WT_SESSION_IMPL *session, WT_REF *re WT_ERR(__page_build_ref( session, ref, base_ke...
18
17
0
[{"id": "G0", "claim": "The new cell-type macro should be named WT_CELL_ADDR_DEL_VISIBLE_ALL instead of WT_CELL_ADDR_DEL_NULL.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use a static value instead of initializing a WT_TIME_AGGREGATE on every...
null
wiredtiger__wiredtiger__12396
wiredtiger/wiredtiger
12,396
defect
ff58611f2a2dc2d4b89256c6803913cc74c3897c
f71e3c38cb2a6ccd7271e95a5e896b709364d995
WT-15310 Multiple cleanups for PALM
* Proper resource cleanup on error paths. * Release palm handler after acquiring it. * Other fixes.
diff --git a/dist/s_string.ok b/dist/s_string.ok index 04494084cba..eff72c192d0 100644 --- a/dist/s_string.ok +++ b/dist/s_string.ok @@ -1426,6 +1426,7 @@ unallocated unbare unbuffered uncached +unclosed unconfigured uncustomized undef diff --git a/ext/page_log/palm/palm.c b/ext/page_log/palm/palm.c index f2f2004...
2
2
0
[{"id": "G0", "claim": "The compound statement that both assigns to matches->error and returns it in one expression is confusing and should be separated into at least two separate statements.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR...
null
wiredtiger__wiredtiger__12412
wiredtiger/wiredtiger
12,412
defect
ff58611f2a2dc2d4b89256c6803913cc74c3897c
2f4d1ee443ef8dea20673ee5f259ae6b9a33193b
WT-15381 Introduce lite-ASAN build Disagg Variant and test/checkpoint
There are three changes in this pull request: - Add CI support for running test/checkpoint on disagg leader mode. - Introduce lite-ASAN test/format testing - Add runs.rows to limit the reduce LMDB mapsize problems
diff --git a/test/checkpoint/CMakeLists.txt b/test/checkpoint/CMakeLists.txt index befbad751c2..1c1d1cb1bea 100644 --- a/test/checkpoint/CMakeLists.txt +++ b/test/checkpoint/CMakeLists.txt @@ -48,18 +48,19 @@ define_test_variants(test_checkpoint test_checkpoint ) -# FIXME-WT-15334 re-enable tests once the b...
14
11
1
[{"id": "G0", "claim": "The checkpointer should skip formatting the checkpoint string on disagg with a FIXME-WT-15357 comment, as done on WT-15357, instead of blanking the string.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should not fo...
null
wiredtiger__wiredtiger__12416
wiredtiger/wiredtiger
12,416
defect
e2ceb29543c9cd88e5037ab41a470990d17eb5da
17a3b31a2a9b0bec276bbc6ff2f0be75060dc788
WT-15410 Fix a block is freed multiple times in disagg
A block can be discarded multiple times if the reconciliation fail. Also ensure if the reconciliation doesn't make any progress, we should have built an empty delta to reduce the frequency of writing a page while reconciliation actually fail.
diff --git a/src/reconcile/rec_write.c b/src/reconcile/rec_write.c index f2f5d6c10f9..a53f4e8fa3c 100644 --- a/src/reconcile/rec_write.c +++ b/src/reconcile/rec_write.c @@ -16,7 +16,7 @@ static int __rec_destroy_session(WT_SESSION_IMPL *); static int __rec_init(WT_SESSION_IMPL *, WT_REF *, uint32_t, WT_SALVAGE_COOKIE ...
5
3
0
[{"id": "G0", "claim": "It is unclear whether the block should be freed when the page is reconciled for the first time: if it is not freed and the node crashes, the page will never be included in any checkpoint, so the author asks whether the page service can detect and free it.", "category": "design", "verdict": "unce...
null
wiredtiger__wiredtiger__12419
wiredtiger/wiredtiger
12,419
defect
d8cd17c2bf745d337a0bd57561604bcd643cf934
2e15ba813cd95bab1cbde8547a18f0519414ee7a
WT-14705 create a verification routine for page discard
This PR adds a verify routine for page discard to ensure the relevant pages have been successfully deleted and no incorrect deletes were made during the process.
diff --git a/ext/page_log/palm/palm_kv.c b/ext/page_log/palm/palm_kv.c index a81def432af..d3e72c08275 100644 --- a/ext/page_log/palm/palm_kv.c +++ b/ext/page_log/palm/palm_kv.c @@ -473,6 +473,12 @@ palm_kv_get_page_ids( goto err; } + /* MDB_NOTFOUND is okay, it means we've reached the end. */ + ...
5
4
0
[{"id": "G0", "claim": "Test coverage of the added/changed code is very low (9% line, 20% branch) and the pull request should try to improve it if feasible.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the newly added static function `__compare...
null
wiredtiger__wiredtiger__12452
wiredtiger/wiredtiger
12,452
defect
c87c59fa398499053e45902a7812cfd5a0a47c48
db894dc11370a5029f57c76fd43386056adff831
WT-15575 Prevent the follower from writing checkpoint metadata
Add a missing leader check to `__checkpoint_db_internal` + add the corresponding test.
diff --git a/src/checkpoint/checkpoint_txn.c b/src/checkpoint/checkpoint_txn.c index bee9fa4fb2b..ff3ae412b03 100644 --- a/src/checkpoint/checkpoint_txn.c +++ b/src/checkpoint/checkpoint_txn.c @@ -1654,12 +1654,11 @@ __checkpoint_db_internal(WT_SESSION_IMPL *session, const char *cfg[]) * disaggregated storage, ev...
1
1
0
[{"id": "G0", "claim": "The test comment should read \"Advance the stable timestamp on the leader without dirtying anything, check that we indeed created a checkpoint\" instead of the garbled \"without dirtying any check\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wiredtiger__wiredtiger__12460
wiredtiger/wiredtiger
12,460
defect
ef0ec6db627743b64fbf858e764aa731e714d8b6
ffed98b37a4733cbb5d1277997405f803ba7c136
WT-13454 Support compiled configurations for WT_SESSION reconfigure
This PR adds compiled configuration support for the `WT_SESSION::reconfigure` API. Correctness test is implemented by extending `test/csuite/config/main.c`. No benchmark/perf test is added at the WT level, as the mongo level testing is more meaningful and is expected to be covered by the dependency server ticket SER...
diff --git a/dist/api_data.py b/dist/api_data.py index 221d5730d24..ad2fcd179c9 100755 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -1291,7 +1291,7 @@ def __ge__(self, other): Config('isolation', 'snapshot', r''' the default isolation level for operations in this session''', choices=['read-un...
4
3
1
[{"id": "G0", "claim": "The rename of the connection-level 'prefetch' config to 'prefetch2' is only a temporary change to make the build pass, and the underlying problem still needs to be properly addressed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wiredtiger__wiredtiger__12468
wiredtiger/wiredtiger
12,468
defect
9aad6aa7607e7c3a39d6b2d12c4858135b23831a
7fc0b8a1a02cfabc51b344f107cb2adeb04cb099
WT-15596 Don't review obsolete time window for readonly btree
We mark a clean page dirty if its aggregated timestamps are globally visible to reconcile and cleanup them in __evict_review_obsolete_time_window. However, we should not do that on the standby for the stable btrees opened as checkpoints.
diff --git a/src/btree/bt_handle.c b/src/btree/bt_handle.c index 9bd6c3ff5a2..5c0ca71b4cb 100644 --- a/src/btree/bt_handle.c +++ b/src/btree/bt_handle.c @@ -71,7 +71,7 @@ __wt_btree_open(WT_SESSION_IMPL *session, const char *op_cfg[]) btree = S2BT(session); dhandle = session->dhandle; dhandle_name = dhan...
4
2
2
[{"id": "G0", "claim": "Add a layered-table test verifying the change, checking the cache_eviction_dirty_obsolete_tw stat to ensure obsolete time-window review never triggers on a follower.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test's f...
null
wiredtiger__wiredtiger__12483
wiredtiger/wiredtiger
12,483
defect
bad7cd2f238ee6e64aac50874731436bd878086e
186817296f70a3455940040c5fa671eb912adc4c
WT-15626 Fix RTS verbose output to print all the timestamps
Allocate the correct number of array strings to hold all the timestamp values being printed, ensuring that previous data isn't overwritten.
diff --git a/src/rollback_to_stable/rts_btree.c b/src/rollback_to_stable/rts_btree.c index 4a2a8a783c5..f9263db5dc0 100644 --- a/src/rollback_to_stable/rts_btree.c +++ b/src/rollback_to_stable/rts_btree.c @@ -83,8 +83,8 @@ __rts_btree_abort_update(WT_SESSION_IMPL *session, WT_ITEM *key, WT_UPDATE *firs W...
1
1
0
[{"id": "G0", "claim": "The first verbose message in __rts_btree_abort_update (line 69) still passes ts_string[1] for rollback_timestamp and ts_string[0] for durable_timestamp — the reversed slot ordering this PR corrects in the adjacent message — and should be changed to use ts_string[0] first.", "category": "maintain...
null
wiredtiger__wiredtiger__12487
wiredtiger/wiredtiger
12,487
defect
fbae136d88345b1fbb500ac427c29fbb4fe6e2b9
6f6d916faa519a1f661ef07b15c589e9bd8082b7
WT-14685 Disagg testing: Add config options to test/format to control page deltas
Add config option to test/format: - `disagg.internal_page_delta=(on | off)` - `disagg.leaf_page_delta=(on | off)` - `disagg.page_log.verbose=(WT verbose level)`; when debugging it is convenient to set verbosity without rebuilding. The delta options have 95% chance of being ON. Related: #12491
diff --git a/dist/s_string.ok b/dist/s_string.ok index 7a24b96f8f32..d2f66e3366b3 100644 --- a/dist/s_string.ok +++ b/dist/s_string.ok @@ -1151,6 +1151,7 @@ pT packv pageref pagesize +palite param pareto parserp diff --git a/test/format/config.h b/test/format/config.h index 227d29a8b94d..c2b24ae2720a 100644 --- a...
3
2
1
[{"id": "G0", "claim": "The page-delta config code added in config_disagg_storage only changes the format config, not the WT config, so the changes should go in the configure_disagg_storage function instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wiredtiger__wiredtiger__12528
wiredtiger/wiredtiger
12,528
defect
75defee433d8ff64a9c8ae627e743056cde363a9
0a9f1594f18d0ffbf8a08e14f6b16db4d3eb7045
WT-15678 Remove reference inc from get page log and add missing free
- Remove `pl_add_reference` in `__conn_get_page_log` to avoid miss match reference add and decrease. - Add atomic wrapper for `reference_count` to avoid potential race condition. - Add missing free of `ckpt_track` with Disagg data handler.
diff --git a/ext/page_log/palm/palm.c b/ext/page_log/palm/palm.c index ffdfd96b57b..722d1387f9e 100644 --- a/ext/page_log/palm/palm.c +++ b/ext/page_log/palm/palm.c @@ -524,11 +524,11 @@ palm_add_reference(WT_PAGE_LOG *page_log) palm = (PALM *)page_log; /* - * Missing reference or overflow? + * Miss...
5
5
2
[{"id": "G0", "claim": "In palm_terminate, use __wt_atomic_sub32 instead of adding (uint32_t)-1 to decrement the reference count.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing the page_log->pl_add_reference call in __conn_get_page_log ...
null
wiredtiger__wiredtiger__12530
wiredtiger/wiredtiger
12,530
defect
7bf8d3d98803f49dbd174d268c3200042c6d3dfe
988ef23a5a9b37b1d1a1c7832c9588947c728a11
WT-15694 Introduce MSAN and UBSAN to disagg test/format builds
This pull request adds MSAN and UBSAN to disagg test/format. The hope is to find out any memory corruption related issues that may be present in the disagg feature code.
diff --git a/test/checkpoint/checkpointer.c b/test/checkpoint/checkpointer.c index 224a99692b49..d27f044480af 100644 --- a/test/checkpoint/checkpointer.c +++ b/test/checkpoint/checkpointer.c @@ -646,6 +646,8 @@ diagnose_key_error(WT_CURSOR *cursor1, table_type type1, int index1, WT_CURSOR * /* Hack to avoid passin...
1
1
0
[{"id": "G0", "claim": "The Evergreen task/buildvariant name itself should carry a failure-expected marker (e.g. `failure-expected- amazon2023-disagg-msan-stress`), since BBUI shows only the name and not the display name, so triagers can detect and ignore these expected-failure builds.", "category": "testing", "verdict...
null
wiredtiger__wiredtiger__12532
wiredtiger/wiredtiger
12,532
defect
8207f0422eeab97b382b68606fadb3f20f7bab46
add6d548e13c6446b32c3452141c9ad54d4df4aa
WT-15605 Fix cursor walk interuptted by a WT_NOTFOUND error
* Fix cursor walk skips the rest keys on the page if it is interrupted by a WT_NOTFOUND error. * Fix a usage of uninitialized variable in test checkpoint.
diff --git a/src/include/txn_inline.h b/src/include/txn_inline.h index eda7f1485ff..bef0abe2e78 100644 --- a/src/include/txn_inline.h +++ b/src/include/txn_inline.h @@ -1576,8 +1576,6 @@ __wt_txn_read_upd_list_internal(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt, __wt_timing_stress(session, WT_TIMIN...
2
1
1
[{"id": "G0", "claim": "Removing the check that returned WT_NOTFOUND when upd_value->type is WT_UPDATE_INVALID may leave the search case unhandled, since __wt_hs_find_upd already signals a history-store miss by setting the type invalid, and the search case expects a not-found result rather than going on to read the onp...
null
wiredtiger__wiredtiger__12544
wiredtiger/wiredtiger
12,544
defect
d0066ef60d7592e8f3b99f3be043b3c771ee3d00
eb3eef3726f6ffa1dde6e1d8c11ea04641a09276
WT-15734 Remove the layered tables manager thread
This thread is useless and does nothing so it could be safely removed
diff --git a/dist/s_void b/dist/s_void index 472f4ed1e92..020ccf7fe00 100755 --- a/dist/s_void +++ b/dist/s_void @@ -52,7 +52,6 @@ func_ok() -e '/int __im_file_sync$/d' \ -e '/int __im_fs_directory_list_free$/d' \ -e '/int __im_fs_exist$/d' \ - -e '/int __layered_table_manager_thread_r...
3
3
1
[{"id": "G0", "claim": "In __layered_table_manager_start the assertion should test manager->init == false rather than manager->init.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The layered_table_manager stat descriptions still say the manager thr...
null
wiredtiger__wiredtiger__12549
wiredtiger/wiredtiger
12,549
defect
466cdc3562a8c3533a3c68fd14b213a9ae47ccc4
dde4af3a66f946e1faccfbd223ab8a29db551623
WT-8969 Eviction stats are misleading when failed(8.0 backport)
For better diagnosability, separate the eviction stats as attempts and failures.
diff --git a/dist/stat_data.py b/dist/stat_data.py index 94a0477a859..992578938d1 100644 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -290,8 +290,10 @@ def __init__(self, name, desc, flags=''): CacheStat('cache_bytes_updates', 'bytes allocated for updates', 'no_clear,no_scale,size'), CacheStat('cache_ev...
1
1
0
[{"id": "G0", "claim": "The explicitly added `#include <stdbool.h>` in src/evict/evict_lru.c is redundant because wt_internal.h already includes it, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wiredtiger__wiredtiger__12550
wiredtiger/wiredtiger
12,550
defect
8d9c8f907496c35b4e4e6a9a274524269fe7282d
86de8af21a8dfecac491e4ebfc4e308af6df2c30
WT-15398 Implement multi node in test/format
To run multi-mode locally, navigate to the following directory, checkout this branch then: ``` cd build/test/format ``` Then, execute: ``` ./format_disagg_multi.sh ``` (For more details, checkout [this](https://jira.mongodb.org/browse/WT-15398?focusedCommentId=7763767&focusedId=7763767&page=com.atlassian.jira....
diff --git a/dist/s_string.ok b/dist/s_string.ok index 31edcac9d47..541962273ee 100644 --- a/dist/s_string.ok +++ b/dist/s_string.ok @@ -828,6 +828,7 @@ foward fprintf fread free'd +freopen fs fscanf fseek diff --git a/ext/page_log/palm/palm.c b/ext/page_log/palm/palm.c index ffdfd96b57b..e1d91be625c 100644 --- a...
6
5
1
[{"id": "G0", "claim": "The follower simply reads the last checkpoint because no API exists to read a specific LSN; eventually the leader should send checkpoint metadata to the follower (needed once the library version of PALI, which lacks pl_get_complete_checkpoint_ext, is used), and a FIXME comment should be added to...
null
wiredtiger__wiredtiger__12568
wiredtiger/wiredtiger
12,568
defect
3562958f8a9f13d7ac17c7fdbe63781348f88731
9859e4fac5f4fb96201f78a66787b6b0c93f904e
WT-15707 Reducing the test/format runs and fix test/checkpoint issues for disagg variants
PAlite introduced much more test/format runs. It is not feasible to have as many test/format tests as we use to. HThis pull request has these changes: - Reduce the number of test/format runs. - Fixed test_checkpoint timeout and usage issues. [WT-15665](https://jira.mongodb.org/browse/WT-15665), [WT-15749](https://...
diff --git a/test/checkpoint/CMakeLists.txt b/test/checkpoint/CMakeLists.txt index 92671e94bfc..62127f2fb40 100644 --- a/test/checkpoint/CMakeLists.txt +++ b/test/checkpoint/CMakeLists.txt @@ -77,7 +77,7 @@ define_test_variants(test_checkpoint # Define long running test variants for the disagg test define_test_varian...
15
3
3
[{"id": "G0", "claim": "There is little value in a single test/format run that only lasts 10-15 minutes instead of running 60-120 minutes, since longer runs are the goal for IB stability.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The palite switch-m...
null
wiredtiger__wiredtiger__12610
wiredtiger/wiredtiger
12,610
defect
4509e30160887925c37b4504b33a79f074024b1b
f5ff53095d29dab3725f92bc347c082d81af7e00
WT-14648 Fix log subsystem returning EBUSY from conn->close() (#12050) (v8.0 backport)
The investigation identified a real scenario where EBUSY could return from conn->close(). The scenario is as such: 1. Log server is doing a log_printf() which requires a slot 2. Connection->close() needs to flush it's lsn and requires a slot to do so 3. Connection->close() can't access the slot and returns EBUSY ...
diff --git a/dist/api_data.py b/dist/api_data.py index c8af0a71633..bb0b079a1d1 100755 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -881,12 +881,14 @@ def __ge__(self, other): choices=[ 'aggressive_stash_free', 'aggressive_sweep', 'backup_rename', 'checkpoint_evict_page', 'checkpoint_hand...
3
2
1
[{"id": "G0", "claim": "The cherry-pick pulled in timing-stress options and config entries that are not part of the original change and do not apply to v8.0 (live_restore_clean_up, open_index_slow, session_alter_slow); they should be removed to stick to the original changes.", "category": "correctness", "verdict": "sup...
null
wiredtiger__wiredtiger__12623
wiredtiger/wiredtiger
12,623
defect
dabd77a50e58a7ed5f74a34552264991ce383d06
2146fbc4bd44ed6c8b36a457553cfcddd624c245
WT-15836 bit packing cleanup
Clean up bit packing functions for better structure and maintenance.
diff --git a/dist/s_funcs.list b/dist/s_funcs.list index 76bcf1f5423..a52cd199eb2 100644 --- a/dist/s_funcs.list +++ b/dist/s_funcs.list @@ -5,10 +5,13 @@ __bit_ffs __bit_nclr __ovfl_discard_dump __ovfl_reuse_dump +__wt_4b_pack_array __wt_4b_pack_posint1 __wt_4b_pack_posint2 +__wt_4b_size_array __wt_4b_size_posin...
2
2
0
[{"id": "G0", "claim": "Remove the braces around the single statement in __4b_unpack_end and likewise in __4b_pack_end.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use dcalloc instead of malloc for the decode buffer in test_truncated_and_over...
null
wiredtiger__wiredtiger__12674
wiredtiger/wiredtiger
12,674
defect
275dbf828bcacc3bf5a28594ab35a2b24e22ec20
265e5a3e4a97422ac6585c72ff0985e634d58dd0
WT-15867 Remove FLCS from test format
We are deprecating FLCS beginning with testing, as the other way round will certainly generate untold amounts of red.
diff --git a/test/format/bulk.c b/test/format/bulk.c index 43c537ecf0d..59af82d639a 100644 --- a/test/format/bulk.c +++ b/test/format/bulk.c @@ -84,7 +84,6 @@ table_load(TABLE *base, TABLE *table) WT_ITEM key, value; WT_SESSION *session; uint32_t committed_keyno, keyno, rows_current, v; - uint8_t bitv...
2
2
2
[{"id": "G0", "claim": "The new code appears to give var a 30% probability rather than the 40% the comment states, so the condition should be `v < 5` instead of `v < 4`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since the randomization of the v...
null
wiredtiger__wiredtiger__12697
wiredtiger/wiredtiger
12,697
defect
76a0b551193308c2974d89926afe6d2cf80579d6
10ee458201f181e9f54b2a01d68ad85fb7a7a366
WT-15489 Write the oldest visible update we need to keep to the disk image for in-memory btree
When reconciling an in-memory btree, we use the same eviction rules as the non in-memory btree. This is not efficient especially when in-memory btree is used in ingestable as we cannot overflow the updates to the history store. Instead of writing the stable version to the disk image and still keeping every version in m...
diff --git a/src/include/wt_internal.h b/src/include/wt_internal.h index 1990aa8db0c..57c65c3cf47 100644 --- a/src/include/wt_internal.h +++ b/src/include/wt_internal.h @@ -501,6 +501,8 @@ struct __wti_rec_kv; typedef struct __wti_rec_kv WTI_REC_KV; struct __wti_reconcile; typedef struct __wti_reconcile WTI_RECONCIL...
9
9
6
[{"id": "G0", "claim": "__rec_need_save_upd should not run its save checks for the in-memory case (also covering WT_BTREE_IN_MEMORY, not just WT_CONN_IN_MEMORY) and should instead return false early, with an assert that saving for an in-memory btree implies has_newer_updates.", "category": "correctness", "verdict": "su...
null
wiredtiger__wiredtiger__12717
wiredtiger/wiredtiger
12,717
defect
942e66ea5a12a63182442c63f2ef0407cc12d24c
fa2cfcdc6698bf67804ec3b4909eaf818cfd4db1
WT-15618 Implement rewriting internal page deltas directly into a full page
This PR refactors the delta-merge logic used during page reads and introduces a robust, unified path for unpacking deltas and rebuilding full on-disk images. It fixes several memory-management issues and removes legacy code that previously created inconsistent behaviors between leaf and internal pages. Key Changes ...
diff --git a/src/btree/bt_page.c b/src/btree/bt_page.c index e51ca742a7c..b59153b7a8a 100644 --- a/src/btree/bt_page.c +++ b/src/btree/bt_page.c @@ -281,32 +281,50 @@ __page_merge_deltas_common_merge_loop(WT_SESSION_IMPL *session, WT_CELL_UNPACK_A WT_CELL_UNPACK_DELTA_INT *min_delta; WT_ITEM base_key_buf, del...
15
13
6
[{"id": "G0", "claim": "The merge code sets page to ref->home (the parent page) when building the disk image; it should use the base image address read by __page_read instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new page header fields...
null
wiredtiger__wiredtiger__12791
wiredtiger/wiredtiger
12,791
defect
c43f6ff4a1cb2fd16fc3f80c2b452c9d3c334f50
bc9c84047f8fd287155c451834400fee78ed4077
WT-16050 Update the checkpoint generation before clearing the sync flag
Previously, the checkpoint generation was updated after checkpointing the btree. This introduced a timing gap during which eviction could evict a page that should be included in the next checkpoint under disaggregated storage—after the checkpoint was completed but before the checkpoint generation was updated. Additi...
diff --git a/src/btree/bt_sync.c b/src/btree/bt_sync.c index eaebc0a1669..8ff0ce47be1 100644 --- a/src/btree/bt_sync.c +++ b/src/btree/bt_sync.c @@ -240,13 +240,13 @@ __wt_sync_file(WT_SESSION_IMPL *session, WT_CACHE_OP syncop) * wait for any problematic eviction or page splits to complete. */ ...
4
2
0
[{"id": "G0", "claim": "The acquire/release macros newly added to the top block of src/include/msvc.h duplicate macros that are already defined later in the same file (__wt_atomic_load_ptr_acquire and __wt_atomic_store_ptr_release), and it is better to remove the newly added ones.", "category": "maintainability", "verd...
null
wiredtiger__wiredtiger__12839
wiredtiger/wiredtiger
12,839
defect
fee62a4b982ab06281c550ec069df473d4dd23d0
4e87d879a5e2fe199040a41380451642874f4c94
WT-14275 Add a new stat for how many times a page couldn't be added to the eviction queue
This PR adds a new statistics to track the maximum attempts the eviction threads have tried to add a page to eviction queue but got rejected. This stat is reset per checkpoint/
diff --git a/dist/stat_data.py b/dist/stat_data.py index f1b34b0e660..95a95ee2083 100644 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -372,6 +372,7 @@ def __init__(self, name, desc, flags=''): EvictStat('eviction_internal_pages_queued', 'internal pages queued for eviction'), EvictStat('eviction_internal...
1
1
1
[{"id": "G0", "claim": "The page's queue-attempt counter should be incremented at the start of the walk iteration (before the queueing attempt) so the stat captures how many times the same page is seen before it is evicted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wiredtiger__wiredtiger__12866
wiredtiger/wiredtiger
12,866
defect
f066b860b41d0a2c955823653d326536a007a175
8c275e53079b5bd4397721223efb57b0701985ae
WT-16018 Implement a test which measures disagg step up duration
This change adds new CppSuite test which measures step up time, the test is not run in evergreen yet as many changes are to come and we only want to produce performance metrics when both the relevant disagg code path and the test itself have stabilized.
diff --git a/dist/s_string.ok b/dist/s_string.ok index 7901887bab6..8c3445d0456 100644 --- a/dist/s_string.ok +++ b/dist/s_string.ok @@ -129,6 +129,7 @@ ETIMEDOUT EXTLIST EXTLIST's EXTSUBPATH +Emplace Encryptor Encryptors Enqueue @@ -144,6 +145,7 @@ FLSv FLv FOREACH FS +FTDC FULLFSYNC FUNCSIG Failpoint @@ -...
9
6
2
[{"id": "G0", "claim": "The <iomanip> include in timestamp_manager.cpp is not used and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "hex_to_decimal should take a std::string instead of a const char * to be consistent with dec...
null
wiredtiger__wiredtiger__12885
wiredtiger/wiredtiger
12,885
defect
3b91a761dca4ecb0f4347b5905131aebc3d8126f
ea365f7e621c5e98e13a6353fa0b8ab0912a67ed
WT-16221 Immediately expire outdated btrees.
Accurately mark outdated live and read only stable btrees. Add statistics for open btrees, needed for testing. Add statistic for layered dhandle - although not relevant to this ticket, it was obviously missing, and will be useful. Fix pruning ingest btrees too aggressively.
diff --git a/dist/stat_data.py b/dist/stat_data.py index 2d6c019e167..159177a37e8 100644 --- a/dist/stat_data.py +++ b/dist/stat_data.py @@ -177,6 +177,7 @@ def __init__(self, name, desc, flags=''): ########################################## # System statistics ########################################## ...
2
1
1
[{"id": "G0", "claim": "The sweep should still check session_inuse before reclaiming an outdated dhandle, because an old reader may still be reading it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A special code path may be needed so outdated btr...
null
wiredtiger__wiredtiger__12892
wiredtiger/wiredtiger
12,892
defect
86893ff8d90072b815f1137acd37d57c30d75b27
3c33fe604c9806c585c5b14680d2ec21723ac5c3
WT-16244 Extend to skip writing all the one-to-one leaf page replacement reconciliation that doesn't make progress in disagg
We already skip writing empty deltas in disaggregated storage. This change broadens that logic to skip one-to-one leaf page replacement reconciliations that do not result in meaningful progress. This enhancement can be further extended to skip writing split pages when no progress is made during the reconciliation.
diff --git a/dist/s_define.list b/dist/s_define.list index 44bed4a1cac..ec2648bceb4 100644 --- a/dist/s_define.list +++ b/dist/s_define.list @@ -58,6 +58,7 @@ WT_CONF_SIZING_NONE WT_CONN_CHECK_PANIC WT_DEADLOCK WT_DEBUG_BYTE +WT_DELTA_LEAF_ENABLED WT_DHANDLE_TYPE_NUM WT_ERR_ASSERT WT_ERR_ERROR_OK diff --git a/dis...
4
2
1
[{"id": "G0", "claim": "The PR author asks raviprakashgiri29 for help tuning test_layered52, which has become flaky, because its stat verification currently has to be commented out.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "kommiharibabu asks to re...
null
wiredtiger__wiredtiger__12904
wiredtiger/wiredtiger
12,904
defect
fae712e4cfbf860204513f9358244dcddc532269
aaae75129d555be1649f7f97fe1a76cf8d7fe566
WT-16167 test/format collection hashing
This calculates a checksum over the database and, for now, simply reports it. It uses an FNV-1A hash, since that's simple and works for incremental hashing (to avoid loading all keys/values into memory somehow). There is a little bit of finagling with the keys, to ensure that hashes are comparable across tables t...
diff --git a/dist/s_string.ok b/dist/s_string.ok index 8a9f5415237..8d5065cd843 100644 --- a/dist/s_string.ok +++ b/dist/s_string.ok @@ -142,6 +142,7 @@ FLCS FLD FLSv FLv +FNV FOREACH FS FULLFSYNC @@ -792,6 +793,7 @@ fixup floatnum fmt fmterr +fnv foc fopen formatmessage diff --git a/test/format/CMakeLists....
15
8
1
[{"id": "G0", "claim": "The config flag should be renamed (e.g. to GENERATE_DB_CHECKSUM) because DB checksum generation need not be tied to disagg or multi-node, and multi-node validation should instead be introduced separately in a follow-up PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": ...
null
wiredtiger__wiredtiger__12938
wiredtiger/wiredtiger
12,938
defect
4676f3c1b89ea9291049c4809aa570afb85fb429
79e786c72199e9f220f609cab347a4d06b57fef0
WT-15934 Ensure tiered server is not run for disagg
In disaggregated storage, the tiered storage feature can be disabled.
diff --git a/src/conn/conn_open.c b/src/conn/conn_open.c index 9dac8e9bbaa..83b72c3e52c 100644 --- a/src/conn/conn_open.c +++ b/src/conn/conn_open.c @@ -238,7 +238,7 @@ __wti_connection_workers(WT_SESSION_IMPL *session, const char *cfg[]) * can know if statistics are enabled or not. */ WT_RET(__wti_sta...
10
6
1
[{"id": "G0", "claim": "In the new test's conn_config, the role and lose_all_my_data settings should be combined into a single disaggregated=(...) config string for readability.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If format_config.c force-disab...
null
wiredtiger__wiredtiger__12962
wiredtiger/wiredtiger
12,962
defect
17c41e208589d792a622d8402f76fa98ed8e8a6f
d3ad5e9b6ce0885d5dc55a1bcea9e29e0d9b0bb8
WT-16378 Allow test/checkpoint & test/model (disagg) to run under various variants
test/checkpoint is currently run in evergreen across multiple tasks as follows 1. data-validation-stress-test-checkpoint, fp-hs-insert-s1…s7 There are multiple evg tasks under the name “data-validation-stress-test-checkpoint-*”, but the name does not accurately reflect what these tests are doing. These tests prima...
diff --git a/test/checkpoint/CMakeLists.txt b/test/checkpoint/CMakeLists.txt index e14c516843f..6e21077b157 100644 --- a/test/checkpoint/CMakeLists.txt +++ b/test/checkpoint/CMakeLists.txt @@ -50,14 +50,24 @@ define_test_variants(test_checkpoint # Define test variants for the disagg test define_test_variants(test_che...
2
1
0
[{"id": "G0", "claim": "The test runner could implicitly enable the -e precise-checkpoint option (and timestamps) when disagg mode (-d) is specified, instead of requiring the flags explicitly or erroring out.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
wiredtiger__wiredtiger__12970
wiredtiger/wiredtiger
12,970
defect
17c41e208589d792a622d8402f76fa98ed8e8a6f
6943422970cfdcde7e5f431ef33c9607d212ac82
WT-16382 Add test/format key provider support
Configure key provider module to be enabled 5% of the time in test/format disagg runs. This will help us validate fuzz stressful runs and ensure that key provider is working correctly.
diff --git a/test/format/config.h b/test/format/config.h index 019c422bb7d..5a6bc48f2ad 100644 --- a/test/format/config.h +++ b/test/format/config.h @@ -93,96 +93,97 @@ typedef struct { #define V_GLOBAL_DISAGG_LAYERED 61 #define V_GLOBAL_DISAGG_MODE 62 #define V_GLOBAL_DISAGG_PAGE_LOG 63 -#define V_GLOBAL_DISAGG_PAG...
2
1
0
[{"id": "G0", "claim": "The new opts.disagg_key_provider setting in test/format should drop the `disagg_` prefix to be consistent with the page_log settings.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The KEY_EXPIRES_NEVER/KEY_EXPIRES_ALWAYS s...
null
wiredtiger__wiredtiger__12994
wiredtiger/wiredtiger
12,994
defect
1f012ebec6f1159afa3f15e43e9cbef402d457c3
209f321cb997c0fc7c365a22da556b8c1fdfdf55
WT-16379 Add record length check to avoid overflow in round up
Add a record length check to avoid `overflow` with roundup operation, also add assert to the function to identify potential overflow in the future. Also add a new test case to modify the record length binary directly to trigger the check.
diff --git a/src/log/log.c b/src/log/log.c index c936d6fe29e..bd63a373e8c 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -2269,6 +2269,20 @@ __wt_log_scan(WT_SESSION_IMPL *session, WT_LSN *start_lsnp, WT_LSN *end_lsnp, ui #ifdef WORDS_BIGENDIAN reclen = __wt_bswap32(reclen); #endif + /* + *...
9
9
0
[{"id": "G0", "claim": "The comment in __wt_log_scan should describe what salvage will do and why it is needed, since readers will not know why an infinite restart would otherwise occur.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment s...
null