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
scylladb__scylla-rust-driver__753
scylladb/scylla-rust-driver
753
defect
58e0d537f4f98c4fd4c141c4e47cef6b43e8c863
172f7a0e48d94015f45651438a1d01ea76456951
Proceed on unresolvable hostname
A user encountered a following problem: > Rust Driver wasn't able to start if one of the configured nodes was not available This was found to be caused by the hostname resolution logic, which considered failure in resolving any hostname to be a critical error. As it makes more sense to fail only when we end up wit...
diff --git a/scylla-cql/src/errors.rs b/scylla-cql/src/errors.rs index 9ddbac0c3fa..6456f126da8 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -357,8 +357,8 @@ pub enum BadQuery { #[derive(Error, Debug, Clone)] pub enum NewSessionError { /// Failed to resolve hostname passed in Session c...
4
3
0
[{"id": "G0", "claim": "Use domain names guaranteed not to resolve to anything (e.g. ending in .invalid) instead of the invented ones in the new integration test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's change of failure variants shows t...
null
scylladb__scylla-rust-driver__757
scylladb/scylla-rust-driver
757
defect
f3d41c95fee215b071d60cdf0f33827cbaa250ae
d9f95f75aae7e164b1f37da2fb2cfd55549a98b5
Calculate token without preparing
The function `Session::calculate_token_for_partition_key()` is added and tested. It enables computing the token without prior preparing, straight from a given partitioner and a serialized partition key. Fixes: #746 ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x...
diff --git a/scylla/src/statement/prepared_statement.rs b/scylla/src/statement/prepared_statement.rs index 350f0d85e51..19f50d505fe 100644 --- a/scylla/src/statement/prepared_statement.rs +++ b/scylla/src/statement/prepared_statement.rs @@ -134,21 +134,21 @@ impl PreparedStatement { ) -> Result<Bytes, PartitionKey...
3
2
0
[{"id": "G0", "claim": "The complex_pk session.query() chain is missing one level of indentation (rustfmt gave up enforcing proper formatting there).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test manual_primary_key_computation should b...
null
scylladb__scylla-rust-driver__758
scylladb/scylla-rust-driver
758
defect
058bb30204ffd23d9b69082540940674c227a840
1707c35a0d578b73168c002b09cf3145740de1ba
Stateful partitioners
## Motivation Currently, partitioners require the whole input to be passed in a single contiguous slice, which often forces an allocation that could else be avoided. ## What's done 1. **Partitioners' API is refactored** so it resembles `std::hash` API: - `Partitioner` corresponds to `BuildHasher` as it beco...
diff --git a/examples/compare-tokens.rs b/examples/compare-tokens.rs index 30c631a1528..43e9b4175f3 100644 --- a/examples/compare-tokens.rs +++ b/examples/compare-tokens.rs @@ -1,6 +1,5 @@ use anyhow::Result; use scylla::frame::value::ValueList; -use scylla::transport::partitioner::{Murmur3Partitioner, Partitioner}; ...
9
6
1
[{"id": "G0", "claim": "The public token-calculation API is spread across Session::calculate_token, Session::calculate_token_for_partition_key and ClusterData::compute_token at the wrong level of abstraction and should be cleaned up as part of this change.", "category": "design", "verdict": "supported", "priority": "P1...
null
scylladb__scylla-rust-driver__768
scylladb/scylla-rust-driver
768
defect
9a0848899d0f58e92a4221a8047769cb0fbb3324
4b19f74e5eeddd22f8198dcb100f4209ad0286ad
session: remove estimate_replicas_for_query, get_tracing_info_custom
This PR removes two public functions from `Session`: `estimate_replicas_for_query` and `get_tracing_info_custom`. Those changes are a part of our effort to stabilize the API and reduce the number of pub functions. Refs https://github.com/scylladb/scylla-rust-driver/issues/660 #### `estimate_replicas_for_query`...
diff --git a/examples/compare-tokens.rs b/examples/compare-tokens.rs index 30c631a1528..793aae2e9db 100644 --- a/examples/compare-tokens.rs +++ b/examples/compare-tokens.rs @@ -1,8 +1,9 @@ use anyhow::Result; use scylla::frame::value::ValueList; +use scylla::routing::Token; use scylla::transport::partitioner::{Murmu...
3
2
0
[{"id": "G0", "claim": "The default tracing-info fetch settings (5 attempts, 3 ms interval) are too low and should be increased, though not in this PR.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example should pass `uri.as_str()` to `known_node` ...
null
scylladb__scylla-rust-driver__788
scylladb/scylla-rust-driver
788
defect
b06913d415844e48d7ca4916e9177072c6c8e889
8a9243568b934137c114db66654a961610d1d00b
proxy: send shard number as feedback along with the frame
## Motivation It appears (e.g. in #738) that our proxy lacks ability to inform which shard was queried. This is because it is represented in a per-node, not per-shard way. ## What's done - proxy workers are made aware of the shard they are connected to. This, of course, requires that a shards count is known, eithe...
diff --git a/scylla-proxy/src/lib.rs b/scylla-proxy/src/lib.rs index 8e91ae971b0..5a4a12f5f59 100644 --- a/scylla-proxy/src/lib.rs +++ b/scylla-proxy/src/lib.rs @@ -2,6 +2,9 @@ mod actions; mod errors; mod frame; mod proxy; + +pub type TargetShard = u16; + pub use actions::{ Action, Condition, Reaction, Reques...
2
2
2
[{"id": "G0", "claim": "A new test should be added showcasing the new functionality, e.g. a shard-awareness test validating that requests to partition X always go to the same shard Y.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The proxy should get t...
null
scylladb__scylla-rust-driver__792
scylladb/scylla-rust-driver
792
defect
932c6b41e9f2b03ea18ef86af764976091db01bf
10ff15c29b6af57db33a1a7c011d759f1099ca7b
codewide: Allow setting Serial,LocalSerial for Consistency
# Motivation See #736. # What's done - `Consistency` is extended with `Serial` and `LocalSerial` to support reading using Paxos (SELECT statements), - `LegacyConsistency` is removed altogether, - a test is added that performs such a Paxos read. Fixes: #736 ## Pre-review checklist - [x] I have split my p...
diff --git a/scylla-cql/src/errors.rs b/scylla-cql/src/errors.rs index 6456f126da8..40587cfef64 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -2,8 +2,8 @@ use crate::frame::frame_errors::{FrameError, ParseError}; use crate::frame::protocol_features::ProtocolFeatures; -use crate::frame::typ...
1
1
1
[{"id": "G0", "claim": "NonSerialConsistencyError should use thiserror::Error to implement the standard std::error::Error trait.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__scylla-rust-driver__80
scylladb/scylla-rust-driver
80
defect
27e52d41b2514531503bf4bb549283783c1f6fc2
74d4d379a604c2e43dd8b1fc6fdebf80622dcebc
get rid of close()
futures_util::future::RemoteHandle is now used to schedule Connection's workers for destruction by tokio's executor when Connection is dropped. Yay for RAII. There is no need for an explicit "wait for stuff to finish" method, really. If the user wants there to be no in-flight requests when they drop the Connecti...
diff --git a/scylla/Cargo.toml b/scylla/Cargo.toml index 8357bd1d83e..bb4cddcac07 100644 --- a/scylla/Cargo.toml +++ b/scylla/Cargo.toml @@ -13,6 +13,7 @@ anyhow = "1.0.33" byteorder = "1.3.4" bytes = "0.6.0" futures = "0.3.6" +futures-util = "0.3.6" num_enum = "0.5" compress = "0.2.1" tokio = { version = "0.3.0"...
3
2
0
[{"id": "G0", "claim": "The `_worker_handle: RemoteHandle<()>` field shouldn't be needed at all, since the worker fibre will stop quickly after the send half of the channel used to submit requests is dropped.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
scylladb__scylla-rust-driver__806
scylladb/scylla-rust-driver
806
defect
220c354bab3c049d0a3428f652ceddd8eb401f20
b035c502c0f523ccaada7a8f4ed9169b50546f18
Quietly prepare unprepared query
## Motivation See the referenced issue (#800) ## What's done Information about the types of the bind markers is necessary to make the serialization API safe (i.e. so that the user data won't be misinterpreted when sending it to the database). The problem with unprepared statements is that the driver doesn't have a...
diff --git a/scylla/src/transport/session.rs b/scylla/src/transport/session.rs index 790f8404004..fe745e25323 100644 --- a/scylla/src/transport/session.rs +++ b/scylla/src/transport/session.rs @@ -650,15 +650,34 @@ impl Session { |connection: Arc<Connection>, consistency: Consistency,...
4
3
2
[{"id": "G0", "claim": "values.serialized() is a potentially costly operation that is computed a second time on line 662; the already computed serialized_values should be used instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The prepared stat...
null
scylladb__scylla-rust-driver__812
scylladb/scylla-rust-driver
812
defect
e9af9a14bae04d214a9d0775a323359ad1950dfe
c4bf01ad84a44ad8e42302f8b1c5cc0c6e1c23cc
Quietly prepare unprepared queries in batches
## Motivation See the referenced issue (#800) ## What's done Information about the types of the bind markers is necessary to make the serialization API safe (i.e. so that the user data won't be misinterpreted when sending it to the database). The problem with unprepared statements in batch is that the driver doesn...
diff --git a/scylla/src/transport/connection.rs b/scylla/src/transport/connection.rs index d57612dec35..2872a325d8b 100644 --- a/scylla/src/transport/connection.rs +++ b/scylla/src/transport/connection.rs @@ -26,7 +26,7 @@ pub(crate) use ssl_config::SslConfig; use crate::authentication::AuthenticatorProvider; use s...
5
5
2
[{"id": "G0", "claim": "Use just a Vec of indexes instead of a HashSet, or better, store the unprepared query strings (deduplicated in a set, prepared once, and looked up in a map by statement string) so that executing the same unprepared statement multiple times with different parameters only prepares it once.", "cate...
null
scylladb__scylla-rust-driver__885
scylladb/scylla-rust-driver
885
defect
99330c8531392c24478e33a5a576780e25680aa1
00f05084f721351832a273261b4635511ae48af6
Don't return error on unexpected UDT field in SerializeCql macro
In order to properly support ALTERing UDTs in database, code that serializes UDT shouldn't return error when there is column in UDT that is not present in Rust struct. This PR changes the default behavior like this, and adds an `force_exact_match` attribute to opt-in to previous behavior. CQL specification says: `...
diff --git a/scylla-cql/src/macros.rs b/scylla-cql/src/macros.rs index 6c6f2b72430..5bf96a35f7c 100644 --- a/scylla-cql/src/macros.rs +++ b/scylla-cql/src/macros.rs @@ -18,8 +18,12 @@ pub use scylla_macros::ValueList; /// /// At the moment, only structs with named fields are supported. /// -/// Serialization will fa...
3
2
1
[{"id": "G0", "claim": "Removing the `c: Vec<u8>` field from the doc example without a note may confuse readers who skim the description, so a short comment in place of the removed field would be in order.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
scylladb__scylla-rust-driver__894
scylladb/scylla-rust-driver
894
defect
4a4fd0e5e785031956f560ecf22cb8653eea122b
24663ffa061a714abf1ea122a21e51b0b7a4da08
Introduce `CqlTimeuuid` type
Fixes: https://github.com/scylladb/scylla-rust-driver/issues/749 ## Changes - Introduced `CqlTimeuuid` type as a wrapper for version 1 uuids - Implemented `uuid::Uuid` delegate methods for `CqlTimeuuid` - Implemented strong ordering on `CqlTimeuuid` type so it has the same semantics as Scylla/Cassandra - `CqlVal...
diff --git a/scylla-cql/src/frame/response/cql_to_rust.rs b/scylla-cql/src/frame/response/cql_to_rust.rs index 19fc72cbe2b..fb9b5bf2490 100644 --- a/scylla-cql/src/frame/response/cql_to_rust.rs +++ b/scylla-cql/src/frame/response/cql_to_rust.rs @@ -1,5 +1,5 @@ use super::result::{CqlValue, Row}; -use crate::frame::val...
11
7
2
[{"id": "G0", "claim": "Please prepare the INSERT statement before executing it in a loop in the timeuuid sorting test.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please add a documentation page for the new CqlTimeuuid type, like the existing uu...
null
scylladb__scylla-rust-driver__925
scylladb/scylla-rust-driver
925
defect
e94f8f9c7568479bf85798976748e5e00f6160e1
600dfc746b9b42442372841d805854e5152a2082
Use prepared statement result metadata to decode rows
Fixes: https://github.com/scylladb/scylla-rust-driver/issues/169 ## Motivation Currently, the driver does not make a use of an optimization that CQL protocol offers during exeuction of prepared statements. The client is allowed to provide `SKIP_METADATA` flag during `Session::execute`, so the server doesn't attach ...
diff --git a/scylla/src/transport/connection.rs b/scylla/src/transport/connection.rs index b6b91b69db4..502a02bf17d 100644 --- a/scylla/src/transport/connection.rs +++ b/scylla/src/transport/connection.rs @@ -363,6 +363,7 @@ pub struct ConnectionConfig { pub authenticator: Option<Arc<dyn AuthenticatorProvider>>, ...
4
3
2
[{"id": "G1", "claim": "The skip-result-metadata option should live on PreparedStatement (and optionally the execution profile) rather than on SessionConfig, so users can enable it on a per-statement basis.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "...
null
scylladb__scylla-rust-driver__939
scylladb/scylla-rust-driver
939
defect
87908f3c73cdece258d28b5b2191a843e7da3b98
c33917588f4c73ef47f05d19eb425f9c76eca18c
Rename `chrono`, `time` and `secret` features
Ref: https://github.com/scylladb/scylla-rust-driver/issues/771 ## Motivation To follow the same naming conventions as for other features, we want to add a crate version numbers to the remaining dependencies hidden behind crate features: `chrono`, `time` and `secrecy`. ## Changes ### Dependecies versions I bu...
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a53d4ef59ea..2ddb711b0b8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -35,11 +35,11 @@ jobs: - name: Cargo check with all serialization features run: cargo check --all-targets --manifest-path "scylla/Ca...
8
5
3
[{"id": "G0", "claim": "The pull request drops the minimum required versions of the chrono and time dependencies (e.g. chrono 0.4.27->0.4 in scylla-cql, chrono 0.4.20->0.4 in scylla, time 0.3.21->0.3 in dev-dependencies) without checking that everything still compiles and passes with those older versions.", "category":...
null
scylladb__scylla-rust-driver__951
scylladb/scylla-rust-driver
951
defect
da49a7dedd48a0a2dd7d24e8d1578deeb96735b2
8648c3b9b4c39348356c378408508cb56d5f9077
Deal with chrono deprecations
Chrono deprecated several method in 0.4.35 / 0.4.34 - chrono::Duration::days -> chrono::Duration::try_days New method was introduced in 0.4.33, so quite recently. This requires us to bump minimum chrono version. - NaiveDateTime::from_timestamp_opt -> DateTime::from_timestamp This requires some other changes, beca...
diff --git a/Cargo.lock.msrv b/Cargo.lock.msrv index 05324b38b08..eafc5cc2343 100644 --- a/Cargo.lock.msrv +++ b/Cargo.lock.msrv @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.21.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23...
2
1
0
[{"id": "G0", "claim": "The test name `naive_date_time_serialization` is no longer relevant now that the test serializes DateTime<Utc> from the start, and the reviewer asks to correct the name in this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
scylladb__scylla-rust-driver__958
scylladb/scylla-rust-driver
958
defect
07df198a27c8fa771b2ba10d10e45bc35979a278
c6f1cfb16305e100c515643a93f07e4a0b38533f
Remove unreachable pubs
Up until now some structs / fields etc were marked as pub despite not being a part of public API. This is confusing when reading code: in order to know if something is truly public you need to check all the modules up to lib.rs to verify that each appears in some `pub use`. This PR removes all such occurrences - no...
diff --git a/scylla-macros/src/from_row.rs b/scylla-macros/src/from_row.rs index 027a8b3a0e4..454f9f234d9 100644 --- a/scylla-macros/src/from_row.rs +++ b/scylla-macros/src/from_row.rs @@ -3,7 +3,7 @@ use quote::{quote, quote_spanned}; use syn::{spanned::Spanned, DeriveInput}; /// #[derive(FromRow)] derives FromRow...
1
1
1
[{"id": "G0", "claim": "The ExampleDbErrors struct in scylla-proxy should be `pub` because it is intended as a public API even though no external code uses it yet.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__scylla-rust-driver__969
scylladb/scylla-rust-driver
969
defect
cf0b1cdc0ee7f41fe5d0f430079c1717b4edcbd7
2589fa75b7dae5283ca48dec4c9c8153085e14e9
LBP: Return Option<Shard> instead of Shard
This was already documented as such, but due to an oversight the code was in disagreement with documentation. Approach from the documentation is better, because the currently implemented approach prevented deduplication in Plan from working correctly. I didn't change deduplication in DefaultPolicy, so currently for ...
diff --git a/examples/custom_load_balancing_policy.rs b/examples/custom_load_balancing_policy.rs index fb1ae0cb7c2..5c279f2331b 100644 --- a/examples/custom_load_balancing_policy.rs +++ b/examples/custom_load_balancing_policy.rs @@ -18,12 +18,12 @@ struct CustomLoadBalancingPolicy { fav_datacenter_name: String, }...
8
6
0
[{"id": "G0", "claim": "The Plan rustdoc line still says 'remaining nodes' where the change makes it targets.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The NonRandomLBP code example in the Plan rustdoc should be made to compile as a doctest s...
null
scylladb__scylla-rust-driver__992
scylladb/scylla-rust-driver
992
defect
1fcadc99055fe21a47ec623a8f1af1bb8790d186
e5337993baea27630a5c09f92a446e9e645aef21
Remove `.with_current_subscriber()` calls
Those calls were introduced in e5570956758503a8f0a7ed0ad1c649909f370a73, with message: ``` Now, when the driver spawns a task to run a new future on it, that future will use the same subscriber as the code that spawned the task in the first place. ``` There is unfortunately no explanation about when it is nece...
diff --git a/examples/Cargo.toml b/examples/Cargo.toml index b068ee9e3cc..bd56a0798bb 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -12,7 +12,7 @@ rustyline = "9" rustyline-derive = "0.6" scylla = {path = "../scylla", features = ["ssl", "cloud", "chrono", "time", "num-bigint-03", "num-bigint-04", "big...
4
3
1
[{"id": "G0", "claim": "Removing the `.with_current_subscriber()` calls might make cpp-rust-driver's logging malfunction, so the author should build cpp-rust-driver against a driver with those calls removed and check that logging still works.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope":...
null
scylladb__scylladb__22725
scylladb/scylladb
22,725
defect
0185aa458b87f2bb4155a67eb4e5f7b8fe0de795
d5c3bfe873dc2c8d8097e798829c760be8047938
sstables_manager: trigger reclaim/reload on `components_memory_reclaim_threshold` update
The config variable `components_memory_reclaim_threshold` limits the memory available to the sstable bloom filters. Any change to its value is not immediately propagated to the sstable manager, despite it being a LiveUpdate variable. The updated value takes effect only when a new sstable is created or deleted. T...
diff --git a/sstables/sstables.cc b/sstables/sstables.cc index 58d2d52beb384..9525fc037bcea 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -1364,7 +1364,7 @@ future<> sstable::open_data(sstable_open_config cfg) noexcept { _stats.on_open_for_reading(); _total_reclaimable_memory.reset(); - ...
1
1
0
[{"id": "G0", "claim": "The new fmt::formatter<std::vector<T>> added in utils/config_file.cc may be unnecessary - a formatter for standard containers may already exist, the test could avoid the formattability requirement (e.g. BOOST_REQUIRE instead of BOOST_REQUIRE_EQUAL), and no other allowed_values config option need...
null
scylladb__scylladb__24618
scylladb/scylladb
24,618
defect
85c19d21bb4a4d875eb0b50f817b4808ef4a795e
9c6933d8ee633cda1fbcbc1ca360f6dd9da1343e
Improve background disposal of tablet_metadata
As seen in #23284, when the tablet_metadata contains many tables, even empty ones, we're seeing a long queue of seastar tasks coming from the individual destruction of `tablet_map_ptr = foreign_ptr<lw_shared_ptr<const tablet_map>>`. This change improves `tablet_metadata::clear_gently` to destroy the `tablet_map_pt...
diff --git a/locator/tablets.cc b/locator/tablets.cc index 4f8499af73aa..9ef94946b8c1 100644 --- a/locator/tablets.cc +++ b/locator/tablets.cc @@ -335,17 +335,18 @@ void tablet_metadata::drop_tablet_map(table_id id) { } future<> tablet_metadata::clear_gently() { + tablet_logger.debug("tablet_metadata::clear_gent...
2
2
1
[{"id": "G0", "claim": "The pull request should verify, e.g. with a SCT test, that the change has no impact on query performance, reactor stalls, or large allocations with a large number of tablet-based tables before it is treated as fixing the issue.", "category": "testing", "verdict": "supported", "priority": "P1", "...
null
scylladb__scylladb__24633
scylladb/scylladb
24,633
defect
5ff693eff672630677a9ba8bf9438385f838717e
7f46eff886e7235d40b74694d73008d004c0611f
encryption_at_rest_test: Fix some spurious errors
Fixes #24574 * Ensure we close the embedded load_cache objects on encryption shutdown, otherwise we can, in unit testing, get destruction of these while a timer is still active -> assert * Add extra exception handling to `network_error_test_helper`, so even if test framework might exception-escape, we properly sto...
diff --git a/ent/encryption/encryption.cc b/ent/encryption/encryption.cc index 8254a21419ec6..d436cbd0acfed 100644 --- a/ent/encryption/encryption.cc +++ b/ent/encryption/encryption.cc @@ -472,6 +472,14 @@ class encryption_context_impl : public encryption_context { for (auto&& [id, h] : _per_thread_kmip_ho...
3
2
0
[{"id": "G0", "claim": "Any reason kms_host::impl::stop() awaits _attr_cache.stop() then _id_cache.stop(), reversed relative to kmip_host::impl::disconnect; the reviewer recommends repeating the same stop order everywhere for symmetry.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": ...
null
scylladb__scylladb__25002
scylladb/scylladb
25,002
defect
a8fd38b92b59ced835f66ec40ff8aeee73a0354d
3e8b56530bb5129b0795bfc0f4b6380dd62f87a0
repair: Avoid too many fragments in a single repair_row_on_wire
When repairing a partition with many rows, we can store many fragments in a repair_row_on_wire object which is sent as a rpc stream message. This could cause reactor stalls when the rpc stream compression is turned on, because the compression compresses the whole message without any split and compression. This pa...
diff --git a/gms/feature_service.hh b/gms/feature_service.hh index fc587bba4cdc2..0005a33cc6eb8 100644 --- a/gms/feature_service.hh +++ b/gms/feature_service.hh @@ -173,6 +173,7 @@ public: gms::feature enforced_raft_rpc_scheduling_group { *this, "ENFORCED_RAFT_RPC_SCHEDULING_GROUP"sv }; gms::feature load_and_...
7
2
2
[{"id": "G0", "claim": "Take the opportunity to also move this verb to the v2 mutation fragment format so both problems are solved under a single feature flag.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reduce the new 1 MiB _max_fragments_size limit (s...
null
scylladb__scylladb__25178
scylladb/scylladb
25,178
defect
ddc3b6dcf513545930232e8fb0236b9d7140c769
a33a12a35dffe902ea992d0e5c2bd4dcc5fa0046
List Alternator clients in system.clients virtual table
Before this series, the "system.clients" virtual table lists active connections (and their various properties, like client address, logged in username and client version) only for CQL requests. This series adds also Alternator clients to system.clients. One of the interesting use cases of this new feature is understand...
diff --git a/alternator/controller.cc b/alternator/controller.cc index 3fc98d23a87ac..0691c3e44b521 100644 --- a/alternator/controller.cc +++ b/alternator/controller.cc @@ -167,4 +167,8 @@ future<> controller::request_stop_server() { }); } +future<utils::chunked_vector<client_data>> controller::get_client_data(...
13
4
2
[{"id": "G0", "claim": "Missing space before the opening brace: should be `noexcept {` instead of `noexcept{`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Returning make_ready_future<>() in the do_until loop can be inefficient; consider using...
null
scylladb__scylladb__26139
scylladb/scylladb
26,139
defect
bc06f89a5c2ed96e46c67998ad734b2e970e15ba
45844d49af414f5daec4362eca300ec0881ebbd9
Return HTTP error description in Vector Store client
The `service_error` struct: https://github.com/scylladb/scylladb/blob/6dc2c42f8bdea4479543d80a71eefdf88eef07ad/service/vector_store_client.hh#L64 currently stores just the error status code. For this reason whenever the HTTP error occurs, only the error code can be forwarded to the client. For example see here: https...
diff --git a/service/vector_store_client.cc b/service/vector_store_client.cc index 04704dd0347a1..e5c65828cb30a 100644 --- a/service/vector_store_client.cc +++ b/service/vector_store_client.cc @@ -604,9 +604,9 @@ auto vector_store_client::ann(keyspace_name keyspace, index_name name, schema_pt } if (resp->st...
4
3
1
[{"id": "G0", "claim": "The ann_error-to-CQL-error conversion should in the future use more appropriate CQL error variants instead of mapping everything to \"invalid\", since not all ann_error variants or HTTP error codes fit a validation error.", "category": "design", "verdict": "supported", "priority": "P2", "scope":...
null
scylladb__scylladb__26579
scylladb/scylladb
26,579
defect
2c74a6981b4e1e93bc74b2371131f90bc5d11a64
10f6d91280d12d7eff2be650be3a408813d40bb0
Add --drop-unfixable-sstables flag for scrub in segregate mode
This PR introduces support for a new scrub option: `--drop-unfixable-sstables`, which enables the dropping of corrupted SSTables during scrub only in segregate mode. The patch includes implementation, validation, and set of tests to ensure correct behavior and error handling. Fixes #19060 Backport is not requir...
diff --git a/api/api-doc/storage_service.json b/api/api-doc/storage_service.json index 0543cd36f2127..1ad32fd8f3514 100644 --- a/api/api-doc/storage_service.json +++ b/api/api-doc/storage_service.json @@ -1144,6 +1144,14 @@ "allowMultiple":false, "type":"string", ...
3
1
0
[{"id": "G0", "claim": "The while condition in fill_buffer_from_underlying is wrapped in an unnecessary extra set of parentheses, which should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "failed_to_fix_sstable is taken by reference...
null
scylladb__scylladb__26593
scylladb/scylladb
26,593
defect
8cd9f5d27143b4cc6638f9e51381b75e5e6ed240
b13bee3218f17fb9bfffe607ca244e49d6e779e5
compaction/twcs: fix use after free issues
The `compaction_strategy_state` class holds strategy specific state via a `std::variant` containing different state types. When a compaction strategy performs compaction, it retrieves a reference to its state from the `compaction_strategy_state` object. If the table's compaction strategy is ALTERed while a compacti...
diff --git a/compaction/compaction_manager.cc b/compaction/compaction_manager.cc index 0d3d947a10e9a..a6f5532d8bd69 100644 --- a/compaction/compaction_manager.cc +++ b/compaction/compaction_manager.cc @@ -1506,7 +1506,7 @@ future<> compaction_manager::maybe_wait_for_sstable_count_reduction(compaction_g co_retu...
1
1
1
[{"id": "G0", "claim": "get_compaction_strategy_state()/get_state() must be patched to return a shared pointer, otherwise the strategy state is not preserved across calls to get_sstables_for_compaction() and the use-after-free the PR set out to fix remains.", "category": "correctness", "verdict": "supported", "priority...
null
scylladb__scylladb__26613
scylladb/scylladb
26,613
defect
15fa1c1c7eedd9cb1c6e87a900623bd46727d1e5
d0237e81bda0265e2a83b2024afe5d28f3ba77e9
audit: write out to both table and syslog
This patch adds support for multiple audit log outputs. If only one audit log output is enabled, the behavior does not change. If multiple audit log outputs are enabled, then the `audit_composite_storage_helper` class is used. It has a collection of `storage_helper` objects. Performance testing shows that read ...
diff --git a/audit/CMakeLists.txt b/audit/CMakeLists.txt index 2d606754e6c6e..caa68f069f10f 100644 --- a/audit/CMakeLists.txt +++ b/audit/CMakeLists.txt @@ -4,6 +4,7 @@ add_library(scylla_audit STATIC) target_sources(scylla_audit PRIVATE audit.cc + audit_composite_storage_helper.cc audit_cf_storage_hel...
20
10
1
[{"id": "G0", "claim": "Asks whether the composite write() should discard the results of the per-helper writes or co_await them instead of returning the parallel_for_each bare.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new audit_composite_storag...
null
scylladb__scylladb__26702
scylladb/scylladb
26,702
defect
ae0136792b23cc42dbaeb1a5aa170b6ff4fac9e9
40b08170f6e85085ddd1c2659a14a5e6555a7d19
Enable digest+checksum verification for file based streaming
This patch enables integrity check in 'create_stream_sources()' by introducing a new 'sstable_data_stream_source_impl' class for handling the Data component of SSTables. The new implementation uses 'sstable::data_stream()' with 'integrity_check::yes' instead of the raw input_stream. These additional checks requ...
diff --git a/sstables/sstables.cc b/sstables/sstables.cc index 0b438ef2a7632..648c0f6339a26 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -2691,6 +2691,14 @@ future<input_stream<char>> sstable::data_stream(uint64_t pos, size_t len, options.buffer_size = sstable_buffer_size; options.read_ahea...
2
1
0
[{"id": "G0", "claim": "The checksum-reading code may trigger large allocations (>128KiB) when the checksums vector grows via push_back for sstables with many chunks.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G3", "claim": "The new read_digest(file)/read_ch...
null
scylladb__scylladb__26941
scylladb/scylladb
26,941
defect
850ec2c2b0f8fd478bc4a9f648b58dd11c0318d0
10d0c74c938cca1ac24f0ae1052f02346f636904
address_map: Use more efficient and reliable replication method
Primary issue with the old method is that each update is a separate cross-shard call, and all later updates queue behind it. If one of the shards has high latency for such calls, the queue may accumulate and system will appear unresponsive for mapping changes on non-zero shards. This happened in the field when on...
diff --git a/utils/replicator.hh b/utils/replicator.hh new file mode 100644 index 0000000000000..72543ae0c43a0 --- /dev/null +++ b/utils/replicator.hh @@ -0,0 +1,153 @@ +/* + * Copyright (C) 2025-present ScyllaDB + */ + +/* + * SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0 + */ +#pragma once + +#inc...
12
9
0
[{"id": "G0", "claim": "The syntactic requirements the replicator places on Container and Mutation, currently only described in comments, need to be expressed as constraints (concepts).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The initial co_await ...
null
scylladb__scylladb__27184
scylladb/scylladb
27,184
defect
e8b0f8faa9c881e53734a0adccce005059375e36
e3695ed951b459b36ae90b82e61dadbb2939c3a5
Add option to use sstable identifier in snapshot
This change adds a new option to the REST api and correspondingly, to scylla nodetool: use_sstable_identifier. When set, we use the sstable identifier, if available, to name each sstable in the snapshots directory and the manifest.json file, rather than using the sstable generation. This can be used by the user (e...
diff --git a/api/api-doc/storage_service.json b/api/api-doc/storage_service.json index 5630aaa2f797..784c6bdcea0b 100644 --- a/api/api-doc/storage_service.json +++ b/api/api-doc/storage_service.json @@ -729,6 +729,14 @@ "allowMultiple":false, "type":"boolean", ...
11
8
1
[{"id": "G0", "claim": "The random_sstable_identifier error injection should be used for testing only and never set directly or indirectly by the user, so that UUID-based sstables always use their real sstable IDs in snapshot files.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduc...
null
scylladb__scylladb__28078
scylladb/scylladb
28,078
defect
489d1a0fbc615881b4be6dc22d72a3cd0c5546b7
81a84a792c614b50b4c5e2cc7777499baba2e5c2
Add consistent permissions cache
This patchset replaces permissions cache based on loading_cache with a new unified (permissions and roles), full, coherent auth cache. Reason for the change is that we want to improve scenarios under stress and simplify operation manuals. New cache doesn't require any tweaking. And it behaves particularly better in ...
diff --git a/auth/cache.cc b/auth/cache.cc index 846f42cd510a9..d2b4474abcda3 100644 --- a/auth/cache.cc +++ b/auth/cache.cc @@ -27,7 +27,12 @@ cache::cache(cql3::query_processor& qp, abort_source& as) noexcept : _current_version(0) , _qp(qp) , _loading_sem(1) - , _as(as) { + , _as(as) + , _perm...
15
11
5
[{"id": "G0", "claim": "Reviewer asked for justification of the assumption that the permission loader will not be used by anyone after the migration listener is unregistered and _cache.set_permission_loader(nullptr) runs in service::stop.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "...
null
scylladb__scylladb__28542
scylladb/scylladb
28,542
defect
03ff091beed555c8771bbe3c4c46ad1c4308a6b9
b93163ccc7d958460b8190ac49774359f6b76cbf
Introduce maintenance scheduling supergroup and do initial population
The supergroup replaces streaming (a.k.a. maintenance as well) group, inherits 200 shares from it and consists of four sub-groups (all have equal shares of 200 withing the new supergroup) * maintenance_compaction. This group configures `compaction_manager::maintenance_sg()` group. User-triggered compaction runs in i...
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea3fe641d2697..bb24e6a36e494 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ else() set(Seastar_EXCLUDE_APPS_FROM_ALL ON CACHE BOOL "" FORCE) set(Seastar_EXCLUDE_TESTS_FROM_ALL ON CACHE BOOL "" FORCE) set(Seastar_IO_URING ON CACHE BOOL...
5
1
1
[{"id": "G0", "claim": "The pull request validly breaks reader_concurrency_semaphore_selection_test (scheduling-group classification with respect to the maintenance_compaction group), so the test needs fixing.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "c...
null
scylladb__scylladb__28573
scylladb/scylladb
28,573
defect
a04dbac369a705b2784da27a7979822595a3d5ed
f9ea7a515803cd988611ceae0fc456e2824fdce8
init: fix infinite loop on npos wrap with updated Seastar
Fixes parsing of comma-separated seed lists in "init.cc" and "cql_test_env.cc" to use the standard `split_comma_separated_list` utility, avoiding manual `npos` arithmetic. The previous code relied on `npos` being `uint32_t(-1)`, which would not overflow in `uint64_t` target and exit the loop as expected. With Seastar's...
diff --git a/init.cc b/init.cc index a4d14b8807d35..4a0e3b954d696 100644 --- a/init.cc +++ b/init.cc @@ -30,11 +30,10 @@ std::set<gms::inet_address> get_seeds_from_db_config(const db::config& cfg, std::set<gms::inet_address> seeds; if (seed_provider.parameters.contains("seeds")) { - size_t begin = 0;...
3
3
0
[{"id": "G0", "claim": "The new seeds parsing can avoid unnecessary string copies by trimming a string_view (absl::StripAsciiWhitespace) instead of constructing an sstring and trim-copying it per token.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
scylladb__scylladb__28727
scylladb/scylladb
28,727
defect
668d6fe0199f867533fd2711e3cdf4d364b39642
9de39a184e097d454e44dd6169c94214fe5f2e48
dbuild: Use slirp4netns network in dbuild nested containers
Fixes #25084 Add slirp4netns and use for nested containers. This will allow nested container port aliasing, helping CI stability. Note: this contains and updated Dockerfile for dbuild image, but since chicken and eggs, right now will force install slirp4netns before anything in dbuild script. Updates the mock...
diff --git a/tools/toolchain/dbuild b/tools/toolchain/dbuild index 44e1d86b8ce66..217a5d62597b2 100755 --- a/tools/toolchain/dbuild +++ b/tools/toolchain/dbuild @@ -161,29 +161,26 @@ if [ -z "$is_podman" ]; then "${group_args[@]}" -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro + ...
4
1
1
[{"id": "G0", "claim": "Instead of always doing the cgroupsv1 podman setup, the script should use cgroupsv2, which is not very new — where is cgroupsv2 not supported?", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The host-network usability loss plu...
null
scylladb__scylladb__28761
scylladb/scylladb
28,761
defect
5bbc44ed12ecebbbcb1763d2d0da1fcb52d9c5c7
9bd0f3bd2914b6eec4630c8233d6a9b9b9f910ef
Verify components digests during component load and scrub in validate mode
This PR adds integrity verification for SSTable component files during loading. When component digests are present in Scylla metadata, the loader now validates each component's CRC32 digest against the stored expected value, catching silent corruption of component files. Index, Rows and Partitions components digests ar...
diff --git a/docs/dev/sstable-scylla-format.md b/docs/dev/sstable-scylla-format.md index 1ca0787257e94..e744d7ffa51de 100644 --- a/docs/dev/sstable-scylla-format.md +++ b/docs/dev/sstable-scylla-format.md @@ -31,6 +31,7 @@ in individual sections | scylla_build_id | scylla_version | ext_timest...
1
1
0
[{"id": "G0", "claim": "The reviewer questions why digest() returns std::nullopt unless the reader sits exactly at end-of-file, arguing the caller can be trusted to read to the end (or to digest just part of the file) since seek() is already handled.", "category": "design", "verdict": "supported", "priority": "P3", "sc...
null
scylladb__scylladb__28839
scylladb/scylladb
28,839
defect
1f09fcfb2668fbf5fa40713acf93e0367f38a92a
c2a2cf4548655d86f3263ce6d43478938dae7949
mv: allow skipping view updates when a collection is unmodified
mv: allow skipping view updates when a collection is unmodified When we generate view updates, we check whether we can skip the entire view update if all columns selected by the view are unmodified. However, for collection columns, we only check if they were unset before and after the update. In this patch we add ...
diff --git a/db/view/view.cc b/db/view/view.cc index d95f24af9eba1..9898ef436861c 100644 --- a/db/view/view.cc +++ b/db/view/view.cc @@ -932,8 +932,7 @@ bool view_updates::can_skip_view_updates(const clustering_or_static_row& update, const row& existing_row = existing.cells(); const row& updated_row = update....
2
2
1
[{"id": "G0", "claim": "Add a comment to the new test explaining what it tests and mentioning the issue it reproduces.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test does not check what happens when the unselected collection column is...
null
scylladb__scylladb__28876
scylladb/scylladb
28,876
defect
80b74d7df227ec716b29b1a3a1a68551bae7acd0
e5621d67791bac5d4856b50e194e49a865513f6f
service: assert that tables updated via group0 use schema commitlog
Set enable_schema_commitlog for each group0 tables. Assert that group0 tables use schema commitlog in ensure_group0_schema (per each command). Fixes: https://scylladb.atlassian.net/browse/SCYLLADB-914. Needs backport to all live releases as all are vulnerable
diff --git a/db/system_keyspace.cc b/db/system_keyspace.cc index 5c1cd07c71b8f..bcddf27d72bae 100644 --- a/db/system_keyspace.cc +++ b/db/system_keyspace.cc @@ -112,6 +112,7 @@ namespace { system_keyspace::DICTS, system_keyspace::VIEW_BUILDING_TASKS, system_keyspace::CLIENT_ROUTES...
2
2
1
[{"id": "G0", "claim": "The new invariant that all group0 tables must have use_schema_commitlog enabled will fail existing non-release tests that create ad-hoc group0 tables by only setting set_is_group0_table(true) (e.g. the test_group0_batch initializer); update those tests/initializers to also enable schema commitlo...
null
scylladb__scylladb__28919
scylladb/scylladb
28,919
defect
b90fe19a429757231f54fa503467f1f625af2edb
76c03ea9cefbb6146a13fedafe07c02dd8bf84d4
cql3: track CQL parsing memory cost and use it for admission control
Use rolling_max_tracker to record gross bytes allocated during each CQL parse. The rolling maximum is then added to the memory estimate for incoming QUERY and PREPARE requests so that the admission control in the CQL transport layer accounts for parsing overhead. The measured memory footprint serves as upper bou...
diff --git a/configure.py b/configure.py index 390b395ff63f..795548e6fa11 100755 --- a/configure.py +++ b/configure.py @@ -619,6 +619,7 @@ def find_compiler_cache(preference): 'test/boost/reservoir_sampling_test', 'test/boost/result_utils_test', 'test/boost/rest_client_test', + 'test/boost/rolling_max...
5
4
0
[{"id": "G0", "claim": "The [[unlikely]] overflow check on the uint64_t sequence counter is dead code, since even one call per nanosecond could not wrap the counter for ~500 years.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new header ut...
null
scylladb__scylladb__29007
scylladb/scylladb
29,007
defect
2e68f480682d6c1d99a7365267d706e1f8dd685b
3b52a86fec17b31da48e303fea3b68fb9d0a8db3
tablets: Fix deadlock in background storage group merge fiber
When it deadlocks, groups stop merging and compaction group merge backlog will run-away. Also, graceful shutdown will be blocked on it. Found by flaky unit test test_merge_chooses_best_replica_with_odd_count, which timed-out in 1 in 100 runs. Reason for deadlock: When storage groups are merged, the main ...
diff --git a/replica/compaction_group.hh b/replica/compaction_group.hh index 6a1c7ecc25f1e..d0acc60001463 100644 --- a/replica/compaction_group.hh +++ b/replica/compaction_group.hh @@ -432,7 +432,9 @@ public: // refresh_mutation_source must be called when there are changes to data source // structures but log...
3
1
1
[{"id": "G0", "claim": "There is no metric for when a node holds old topology (old erms) for too long, which would be helpful for raising alerts in monitoring.", "category": "observability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Some of the failing tests assumed oper...
null
scylladb__scylladb__29031
scylladb/scylladb
29,031
defect
fc8cebd6712eec4912a5a51807956a151f00e2a3
bc67e136ffd772d7ffb47430af3ff55297c04602
vector_search: fix race condition on connection timeout
vector_search: fix race condition on connection timeout When a `with_connect` operation timed out, the underlying connection attempt continued to run in the reactor. This could lead to a crash if the connection was established/rejected after the client object had already been destroyed. This issue was observe...
diff --git a/test/vector_search/utils.hh b/test/vector_search/utils.hh index 7ba8be8d0b989..4839f26344e70 100644 --- a/test/vector_search/utils.hh +++ b/test/vector_search/utils.hh @@ -155,11 +155,6 @@ struct unreachable_socket { conn.shutdown_output(); co_await conn.wait_input_shutdown(); ...
6
4
2
[{"id": "G0", "claim": "make() uses the raw _connect_timeout_in_ms value instead of the existing timeout() helper (which enforces a 5s minimum), which can make the connect timeout smaller than 3s/5s, breaking get_keepalive_parameters() (its seconds cast can produce a negative .idle) and contradicting the existing test ...
null
scylladb__scylladb__29084
scylladb/scylladb
29,084
defect
035aa90d4b07b24a57381d27595e6afb69176205
7c03975ec975c7c8bbe631e7dc9840b964752fc9
Fix directory lister leak in table::get_snapshot_details:
As reported in SCYLLADB-1013, the directory lister must be closed also when an exception is thrown. For example, see backtrace below: ``` seastar::on_internal_error(seastar::logger&, std::basic_string_view<char, std::char_traits<char>>) at ./build/release/seastar/./seastar/src/core/on_internal_error.cc:57 directo...
diff --git a/replica/table.cc b/replica/table.cc index 7ca0c85abcecb..b007e4de00ff0 100644 --- a/replica/table.cc +++ b/replica/table.cc @@ -4002,6 +4002,7 @@ future<std::unordered_map<sstring, table::snapshot_details>> table::get_snapshot } auto lister = directory_lister(snapshots_dir, list...
3
2
1
[{"id": "G0", "claim": "The comment in get_snapshot_details says the snapshot directory may contain a schema.sql file, but the code special-cases schema.cql; update the comment to match the actual filename.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "...
null
scylladb__scylladb__29105
scylladb/scylladb
29,105
defect
34f3916e7df03afb0fc2330c502154b57be9942d
2cab4bc09edba31f0a9ccaf983654b3f559e8817
Remove upgrade view builder
Since we do no longer support upgrade from versions that do not support v2 of "view building status" code (building status is managed by raft) we can remove v1 code and upgrade code and make sure we do not boot with old "builder status" version. v2 version was introduced by 8d25a4d67872d9324c1b238ef325ed53c34ea3c2 ...
diff --git a/db/system_distributed_keyspace.cc b/db/system_distributed_keyspace.cc index 98e6add9460ed..b6a8ef52fcce0 100644 --- a/db/system_distributed_keyspace.cc +++ b/db/system_distributed_keyspace.cc @@ -355,35 +355,6 @@ static service::query_state& internal_distributed_query_state() { return qs; }; -futur...
2
2
1
[{"id": "G0", "claim": "Removing the VIEW_BUILD_STATUS_ON_GROUP0 feature may get new nodes rejected when joining existing clusters that have the feature, so it should be kept advertised (e.g. moved to the deprecated list in supported_feature_set).", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
scylladb__scylladb__29110
scylladb/scylladb
29,110
defect
34f3916e7df03afb0fc2330c502154b57be9942d
4eee6ef56353213aaac65da5d917c2bd453a045a
encryption: fix deadlock in encrypted_data_source::get()
When encrypted_data_source::get() caches a trailing block in _next, the next call takes it directly — bypassing input_stream::read(), which checks _eof. It then calls input_stream::read_exactly() on the already-drained stream. Unlike read(), read_up_to(), and consume(), read_exactly() does not check _eof when the buffe...
diff --git a/ent/encryption/encrypted_file_impl.cc b/ent/encryption/encrypted_file_impl.cc index e58a99ae4a52d..4e5f91ed54351 100644 --- a/ent/encryption/encrypted_file_impl.cc +++ b/ent/encryption/encrypted_file_impl.cc @@ -727,7 +727,12 @@ class encrypted_data_source : public data_source_impl, public block_encryption...
3
2
0
[{"id": "G0", "claim": "The test's hand-rolled strict_memory_source should be based on limiting_data_source from test/lib (deriving from it and overriding get()), which would remove the duplicated buffer-trimming code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
scylladb__scylladb__29347
scylladb/scylladb
29,347
defect
b4f652b7c1198f27a805ac29d7188a3bde1c8790
a875f93c6837af868f10d0527013ef3b6a151939
cql3: prepare list statments metadta_id during prepare statement , send the correct metadata_id directly to the client
This series makes result metadata handling for auth LIST statements consistent and adds coverage for the driver-visible behavior. The first patch makes the result-column metadata construction shared across the affected statements, so the metadata shape used for PREPARE and EXECUTE stays uniform and easier to reason ...
diff --git a/cql3/column_specification.cc b/cql3/column_specification.cc index 9986de62eb09a..58ead9ceebbc9 100644 --- a/cql3/column_specification.cc +++ b/cql3/column_specification.cc @@ -10,6 +10,7 @@ #include "utils/assert.hh" #include "cql3/column_specification.hh" +#include "cql3/column_identifier.hh" names...
6
5
1
[{"id": "G0", "claim": "After switching to make_column_spec() nothing in cql3/statements/list_permissions_statement.cc uses cql3::column_identifier anymore, so the now-unused include can be removed to avoid unnecessary dependencies and build work.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
scylladb__scylladb__29388
scylladb/scylladb
29,388
defect
ab43420d30731b6062e5973a11b1e508a75c599e
d1ff5ba81f88d11af3ba3c3ee99420baed9c48b5
auth: sanitize {USER} substitution in LDAP URL template
`LDAPRoleManager` interpolated usernames directly into `ldap_url_template`, allowing LDAP filter injection and URL structure manipulation via crafted usernames. This PR adds two layers of encoding when substituting `{USER}`: 1. **RFC 4515 filter escaping** — neutralises `*`, `(`, `)`, `\`, NUL 2. **URL percent-e...
diff --git a/auth/ldap_role_manager.cc b/auth/ldap_role_manager.cc index b4a4b4c188ae..1d6fb592ebb1 100644 --- a/auth/ldap_role_manager.cc +++ b/auth/ldap_role_manager.cc @@ -31,6 +31,8 @@ namespace { logger mylog{"ldap_role_manager"}; // `log` is taken by math. +constexpr std::string_view user_placeholder = "{USE...
5
4
0
[{"id": "G0", "claim": "Tests should also cover {USER} placed in the attributes and extensions components of the URL template, to fully cover the documentation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The potentially unsafe .data() pointer is sti...
null
scylladb__seastar__1016
scylladb/seastar
1,016
defect
cfd10989d63d39b23f9a13bbe05b3ac084abbe7b
ee802e05078d9b2e2d37674c4510284d05c8bc9d
json/formatter: Escape strings
Background: until now strings in JSON were only quoted, not escaped, as noted by @nyh here: https://github.com/scylladb/seastar/issues/460#issuecomment-1038855017 . This resulted in problems like https://github.com/scylladb/scylla/issues/9061 The code for escaping was based on https://github.com/scylladb/scylla/blob...
diff --git a/include/seastar/json/formatter.hh b/include/seastar/json/formatter.hh index 920ff50b5c7..1f2155422a4 100644 --- a/include/seastar/json/formatter.hh +++ b/include/seastar/json/formatter.hh @@ -121,63 +121,72 @@ class formatter { public: /** - * return a json formated string + * return a json...
1
1
1
[{"id": "G0", "claim": "needs_escaping uses ranges::any_of, which requires C++20, but Seastar is still supposed to support C++17.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__seastar__1307
scylladb/seastar
1,307
defect
117c6a9cecb6a4c620c2cb21e47d0e2f9aca6b98
a0e3c2f60d1257d9c5a7d18c0ba1aed4414b35cf
sockets: Wait on socket peer closing the connection
This patch adds the connected_socket::wait_closed() call that returns a future that resolves when the connection is terminated by the peer or when the local socket is shutdown for reading. This event can be waited on even if a client doesn't read from (or write to) its end while server SUDDENLY closes it. This can b...
diff --git a/include/seastar/core/internal/pollable_fd.hh b/include/seastar/core/internal/pollable_fd.hh index fb0e5084b17..9b88b86e327 100644 --- a/include/seastar/core/internal/pollable_fd.hh +++ b/include/seastar/core/internal/pollable_fd.hh @@ -110,6 +110,7 @@ public: future<size_t> sendmsg(struct msghdr *msg)...
5
2
0
[{"id": "G0", "claim": "There is no way to abort an outstanding wait_close() wait -- e.g. when the socket is taken out of the cache and used for reading again -- and the suggested shutdown(SHUT_RD) workaround would make the socket unusable for further I/O.", "category": "design", "verdict": "opposed", "priority": "P2",...
null
scylladb__seastar__1360
scylladb/seastar
1,360
defect
3db15b5681c460a759641a3907eb9db84bdcf395
2b94ee1502735fccbfe7502bf268fcef7f9cdbac
Make http requests with content-length header and generated body
There are currently two options how to generate http request with body. The first is to provide a body string, so that the client would set content-length header and send string plain-encoded. The second is to provide a function, that would write the data into the output stream and the client would encode it with h...
diff --git a/include/seastar/http/common.hh b/include/seastar/http/common.hh index 9dec6b83349..2c955c7d860 100644 --- a/include/seastar/http/common.hh +++ b/include/seastar/http/common.hh @@ -30,6 +30,7 @@ namespace seastar { namespace http { namespace internal { output_stream<char> make_http_chunked_output_stream(...
8
4
2
[{"id": "G0", "claim": "For truly generated content such as sstables the caller has no way to know the body length ahead of time, so the new content-length body API does not cover that case.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The sink's close...
null
scylladb__seastar__1411
scylladb/seastar
1,411
defect
64ec3388e9c5b10cb6ea449499309fc7734691bd
458c625353fb3fd07b6b7d9b12c082163d1fc4ca
Extend http client with keep-alive connections
Current implementation of the client is class connection which is either one-shot (request, handle reply, close) or the caller should keep track and re-connect on its own. This patch wraps the class connection with class client that maintains pool of connections growing it on demand and closing them on error or when th...
diff --git a/include/seastar/http/client.hh b/include/seastar/http/client.hh index dbddcede790..92f7a01aa88 100644 --- a/include/seastar/http/client.hh +++ b/include/seastar/http/client.hh @@ -19,9 +19,13 @@ * Copyright (C) 2022 Scylladb, Ltd. */ +#include <boost/intrusive/list.hpp> #include <seastar/net/api.hh>...
11
4
0
[{"id": "G0", "claim": "Pool a small entry object (hook plus connection_ptr) instead of keeping a shared_ptr back-pointer on the connection, so ownership of the connection is decoupled from the connection itself.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G2", "cla...
null
scylladb__seastar__1466
scylladb/seastar
1,466
defect
2e8b912fe364c579d2ba5eb3cdee4617393163e0
79b8e01d21d824a9401c09aa9b5035dce842bae7
semaphore: semaphore_units: return units when reassigned
When semaphore_units are (move-) reassigned with other units, the held units aren't currently returned to the semaphore. This change implements the move-reassignment operator by swapping the semaphore and the units counter so that when the moved-from semaphore_units object is destroyed, the units will be returned...
diff --git a/include/seastar/core/semaphore.hh b/include/seastar/core/semaphore.hh index ad3a0a18014..26551de14f2 100644 --- a/include/seastar/core/semaphore.hh +++ b/include/seastar/core/semaphore.hh @@ -482,6 +482,7 @@ public: semaphore_units(semaphore_units&& o) noexcept : _sem(o._sem), _n(std::exchange(o._n, 0...
1
1
1
[{"id": "G0", "claim": "The move-assignment operator does not work when this == &o (self-assignment); although it technically need not work, the damage is great enough that it should protect against it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__seastar__1559
scylladb/seastar
1,559
defect
f340bfa659443fdb1b487d608132fa54e5ef698f
4d68c6d67eafbabbf24b998b4c63f82ba2260097
reactor: add background gate to wait on background tasks
* reactor: add run_in_backround and close - run_in_background allows running background tasks safely, coupled with close() that wait on them using a gate. * manual_clock: advance: use run_in_background to expire_timers - Fixes #1514
diff --git a/include/seastar/core/reactor.hh b/include/seastar/core/reactor.hh index f8ce91881a3..d40322c3f13 100644 --- a/include/seastar/core/reactor.hh +++ b/include/seastar/core/reactor.hh @@ -52,6 +52,7 @@ #include <seastar/core/temporary_buffer.hh> #include <seastar/core/thread_cputime_clock.hh> #include <seas...
9
8
2
[{"id": "G0", "claim": "The background gate could instead be a static thread_local member of manual_clock (with advance() wrapping its background task in with_gate and manual_clock::close waiting on it), and perhaps the reactor facility should not be added if it is needed only to handle a fragility in manual_clock.", "...
null
scylladb__seastar__1737
scylladb/seastar
1,737
defect
a5958c2fd397edc9e16cbf5aa14300a7805a8074
b7c1d692bb25583b18dfde8483bb5c3fdfa62a45
Fix server-side RPC stream shutdown
When RPC server stops or shutdowns it leaves stream connections alive until they get closed "naturally" by TCP. Also there's a stream socket registration race that can leave stream socket alive. refs: scylladb/scylladb#13100
diff --git a/include/seastar/rpc/rpc.hh b/include/seastar/rpc/rpc.hh index 02bfb3f65bd..1320944abd6 100644 --- a/include/seastar/rpc/rpc.hh +++ b/include/seastar/rpc/rpc.hh @@ -595,6 +595,7 @@ public: return _info.server; } future<> deregister_this_stream(); + future<> abort_all_st...
4
4
1
[{"id": "G0", "claim": "Server-side stream sockets can out-survive rpc::server::shutdown() because the shutdown path only closes them indirectly and asynchronously through two TCP round-trips, so server-side stream ends should be closed immediately.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
scylladb__seastar__1753
scylladb/seastar
1,753
defect
19c56e14150a281e8eb8c1124a63ac032cd5f46f
aa3bc6c760788e295055a61ae1c145155d213aeb
RPC metrics
RPC connections already collect some stats about themselves, but these stats are not registered in metrics layer. There main question here is the granularity of reporting -- per-connection, ~~node~~shard-wide or in groups. The grouping seems the most appropriate way, but RPC layer itself has little glues to how group t...
diff --git a/include/seastar/rpc/rpc.hh b/include/seastar/rpc/rpc.hh index 58e8644a8c9..c3a3b68fe2d 100644 --- a/include/seastar/rpc/rpc.hh +++ b/include/seastar/rpc/rpc.hh @@ -117,6 +117,7 @@ struct client_options { /// /// \see resource_limits::isolate_connection sstring isolation_cookie; + sstring ...
2
1
1
[{"id": "G0", "claim": "The pull request's design makes the application aware of the metrics layer; the existing skip-when-empty and aggregate-by-label mechanisms may cover the need instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G6", "claim": "The scrape-time loo...
null
scylladb__seastar__1795
scylladb/seastar
1,795
defect
f8cf9a1060b0971346d13c6f8e1eda071de6691d
38eee26e6a5bbe04cf2df60bd9d0b4543bbd3897
chunked_fifo: let incremetal operator return iterator not basic_iterator
a proper iterator's operator++(int) should return an instance of this iterator, and operator++() should return a reference of this iterator. but chunked_fifo::iterator and chunked_fifo::const_iterator's incremental operator returns basic_iterator<U>. this is not quite right in the sense of the behavior of a proper ite...
diff --git a/include/seastar/core/chunked_fifo.hh b/include/seastar/core/chunked_fifo.hh index e5c12892480..23ba1d63e0b 100644 --- a/include/seastar/core/chunked_fifo.hh +++ b/include/seastar/core/chunked_fifo.hh @@ -24,6 +24,7 @@ #ifndef SEASTAR_MODULE #include <memory> #include <algorithm> +#include <type_traits> ...
1
1
1
[{"id": "G0", "claim": "The #include <ranges> needs to be moved into an __has_include block so the test still builds in C++17.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__seastar__2237
scylladb/seastar
2,237
defect
42f15a5fd54b8a6e99b593202bbccf311e7e09e1
f0c8fdc9815430d5bfc768077d039a922034c67c
tests: add test for prometheus exporter
unlike metrics_test.cc, prometheus_test exercises the exporter server, so it tests the different query parameters supported by it. Fixes #2233 Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 333d72d9c4e..a4f34812cea 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -51,7 +51,6 @@ endmacro () add_subdirectory (httpd) add_subdirectory (io_tester) add_subdirectory (rpc_tester) -add_subdirectory(metrics_tester) add_subdirectory (iotun...
4
4
0
[{"id": "G0", "claim": "It would be better for the pull request's new test to reuse apps/metrics_tester/metrics_tester.cc rather than adding test code that duplicates it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "If the group name is not confi...
null
scylladb__seastar__2436
scylladb/seastar
2,436
defect
f03f7df1639d00581012a5bc6bda62ad82a849ca
096f62789782b38cd03b351c766fc6eb18cf3569
iostream/http: Fix output_stream::write(temporary_buffer) overload
Previously, calling the `write(temporary_buffer<char>)` overload on an `output_stream<char>` obtained from `http::reply::write_body` would cause an abort. This commit fixes this by providing a helper function (in the `data_sink_impl` base class) named `fallback_put`, which classes that inherit from this base class c...
diff --git a/include/seastar/core/iostream.hh b/include/seastar/core/iostream.hh index b2b9072e6a4..78cdfb4fe88 100644 --- a/include/seastar/core/iostream.hh +++ b/include/seastar/core/iostream.hh @@ -36,6 +36,7 @@ #pragma once #include <seastar/core/future.hh> +#include <seastar/core/coroutine.hh> #include <seast...
2
2
1
[{"id": "G0", "claim": "The opening brace of fallback_put's for loop should be placed on the previous line, per the project's coding style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "http_content_length_data_sink_impl should get the same upd...
null
scylladb__seastar__2588
scylladb/seastar
2,588
defect
97e202afb14b58f0867a7fdd6a3deee8d648c822
0e5e8f9821f70876fe2bb6dcfd7d14b476764476
Fix for missing cycles column and more
In this series: - perf_tests_perf: minimal self-benches for PERF_TEST stuff - De-duplicate perf_tests main loop, which also fixes #2587 Example results for `perf_test_perf` after the fix: ``` test iterations median mad min max allocs ta...
diff --git a/tests/perf/CMakeLists.txt b/tests/perf/CMakeLists.txt index fa715c3598e..69a2043360d 100644 --- a/tests/perf/CMakeLists.txt +++ b/tests/perf/CMakeLists.txt @@ -92,3 +92,6 @@ seastar_add_test (container seastar_add_test (http_client SOURCES http_client_perf.cc linux_perf_event.cc NO_SEASTAR_PERF_TEST...
3
2
0
[{"id": "G0", "claim": "The new file tests/perf/perf_tests_perf.cc should use angle-bracket (<>) includes instead of quoted includes.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changelog (cover letter) should be enriched with sample output of the ...
null
scylladb__seastar__2825
scylladb/seastar
2,825
defect
94c276dad049324911ba3cb625d93691c18d77be
c121e0f2b0b5559e9fb4e9df2b0af2b2e951fcce
Add io_queue unit test for checking request rates
This PR adds two support patches that enable tests to configure an io_queue without duplicating code and calculations from within the reactor code and a unit test that calculates iops and bandwidth out of token bucket rate and costs and asserts that they are within 95% of the configured values. Fixes #2822
diff --git a/include/seastar/core/reactor.hh b/include/seastar/core/reactor.hh index 5eac26b9960..2ad76bee0a7 100644 --- a/include/seastar/core/reactor.hh +++ b/include/seastar/core/reactor.hh @@ -33,6 +33,7 @@ #include <seastar/core/internal/io_desc.hh> #include <seastar/core/internal/io_request.hh> #include <seast...
8
7
2
[{"id": "G0", "claim": "The test should replace the hardcoded 1000 multiplier with std::chrono::duration_cast<fair_group::rate_resolution>(std::chrono::seconds(1)) when converting the token-bucket rate to per-second IOPS.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
scylladb__seastar__2973
scylladb/seastar
2,973
defect
a2665f38366fad8570f4e09e76e60ad299c6a71a
7102e50e363c44dbe81ea14bd9a12bc511bb1ba3
coroutine: introduce try_future
Specialized awaiter for future<T> which returns control to the coroutine only if the future didn't fail. If the future failed, the returned exception is returned to the waiter directly, without resuming the coroutine. This allows for elegant control-flow, without the if spamming that is required whe using coroutine::as...
diff --git a/include/seastar/core/coroutine.hh b/include/seastar/core/coroutine.hh index da35d3ce956..0f559a3bf95 100644 --- a/include/seastar/core/coroutine.hh +++ b/include/seastar/core/coroutine.hh @@ -41,6 +41,7 @@ class coroutine_traits_base { public: class promise_type final : public seastar::task { ...
14
13
4
[{"id": "G0", "claim": "The pull request needs a tutorial entry with a concrete, realistic example demonstrating what try_future is for (and can mention prior art such as Rust's try operator).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The add...
null
scylladb__seastar__2980
scylladb/seastar
2,980
defect
acd5720f5461283234a64298bb2f2196d364b6ac
0d42b972899622863670c66688cf89c35b58686c
rpc: sink_impl: batch sending and deletion of snd_buf:s
This series first extends rpc sink_impl backpressure until snd_buf destroy so that callers block until enough memory, held by outstanding snd_buf:s is freed. In addition batching mechanisms are added to queue up snd_buf:s while a send_loop is busy sending the previous batch possibly on a remote shard. When done...
diff --git a/include/seastar/rpc/rpc_impl.hh b/include/seastar/rpc/rpc_impl.hh index bcb0d8f3878..68b74a42ee1 100644 --- a/include/seastar/rpc/rpc_impl.hh +++ b/include/seastar/rpc/rpc_impl.hh @@ -840,6 +840,7 @@ future<> sink_impl<Serializer, Out...>::operator()(const Out&... args) { if (this->_ex) { ...
4
3
2
[{"id": "G0", "claim": "The new snd_buf::su field lacks a comment explaining that it holds semaphore units to extend backpressure lifetime until the snd_buf is destroyed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The backpressure change ships...
null
scylladb__seastar__2993
scylladb/seastar
2,993
defect
c8a3515f9b82e2a9cb816f778c58de7ec3c27454
ac30794d0b69e44ea124eb2132821a161f268c3a
io_queue: Destroy priority class data with scheduling group
When a scheduling group is destroyed, the IO queue's priority_class_data that corresponds to it stays intact. It's not actually a leak, as when the reactor is destroyed all class data objects are collected. However, if another scheduling group under the same ID is created, the IO queue will re-use the dangling pr...
diff --git a/include/seastar/core/io_queue.hh b/include/seastar/core/io_queue.hh index 967c5e37608..d86225f4b00 100644 --- a/include/seastar/core/io_queue.hh +++ b/include/seastar/core/io_queue.hh @@ -222,6 +222,7 @@ public: void update_shares_for_class_group(unsigned index, size_t new_shares); future<> updat...
1
1
0
[{"id": "G0", "claim": "Questions the PR's premise that priority class data may have executing requests at destruction time, since the user destroying the scheduling group is supposed to have drained it of any tasks.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
scylladb__seastar__3055
scylladb/seastar
3,055
defect
52471e87492fc7bbb6664d8dd984a13d5601e043
80a229cad223e0e95cd6804726acec2c7274fa84
test: Add unit test for append_challenged_posix_file
The test validates several things: - the maximum number of writes-above-file-size doesn't exceed the limit - the number of writes-above-file-size actually reaches it - no parallel fsyncs are run if disabled In fact, the 2nd test fails for concurrency above 1, but for XFS it's not currently configured, so OK for n...
diff --git a/src/core/file-impl.hh b/src/core/file-impl.hh index 2dd7892824e..08115c79e7f 100644 --- a/src/core/file-impl.hh +++ b/src/core/file-impl.hh @@ -166,6 +166,10 @@ public: virtual future<temporary_buffer<uint8_t>> dma_read_bulk(uint64_t offset, size_t range_size, io_intent* intent) noexcept override; };...
2
1
0
[{"id": "G0", "claim": "Testing with concurrency 0 may not be meaningful since it suggests no concurrent operations are allowed, which could lead to undefined behavior or deadlocks in the append-challenged file implementation.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, ...
null
scylladb__seastar__3075
scylladb/seastar
3,075
defect
8c3385171359c89f7d64f3d3a7005766abb6bd80
d5664a175934491851b8a9549044143570f3adfa
net: support proxy protocol v2
Proxy protocol v2 [1] is a protocol used by haproxy to forward the original client information to a server behind a reverse proxy. It is also employed by AWS Network Load Balancers for the same purpose [2]. The connection load balancing algorithm "port" which uses the source port number cannot be used behind a re...
diff --git a/apps/httpd/main.cc b/apps/httpd/main.cc index d196b546558..b99fe2f1029 100644 --- a/apps/httpd/main.cc +++ b/apps/httpd/main.cc @@ -34,6 +34,7 @@ #include <seastar/core/print.hh> #include <seastar/net/inet_address.hh> #include <seastar/util/defer.hh> +#include <seastar/net/api.hh> #include "../lib/stop...
10
7
4
[{"id": "G0", "claim": "The addresses carried by the proxy protocol header are not yet propagated to connected_socket's local_address()/remote_address() accessors and the feature has no unit test (the author's opening TODO).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
scylladb__seastar__3090
scylladb/seastar
3,090
defect
a17f8e960118c05842d624a88ab75a7ceed8d7a3
cda27368accbe207d19e48f72e7cd08395c6d8cd
socket: Return unspecified socket_address for unconnected socket
When calling connected_socket::remote_address() it may happen that the kernel-level socket is really unconnected, e.g. because it was connected before and then was forcibly disconnected. For posix_connected_socket_impl this leads to app termination, because its remote_address() method is noexcept, it calls file_desc...
diff --git a/src/net/posix-stack.cc b/src/net/posix-stack.cc index 866dd25e17a..debf43e93f9 100644 --- a/src/net/posix-stack.cc +++ b/src/net/posix-stack.cc @@ -289,7 +289,11 @@ class posix_connected_socket_impl final : public connected_socket_impl { return _ops->local_address(_fd.get_file_desc()); } ...
1
1
0
[{"id": "G0", "claim": "Catch the specific exception and check errno (rather than a blanket catch (...)) when returning the remote address, so that a future bug causing remote_address to always throw is not silently masked.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
scylladb__seastar__3124
scylladb/seastar
3,124
defect
b5c76d6baf799c7164834e65276805b28aa49307
043e02ec2d280bdb020dad00560b6d0a91e81e04
util: Genralize memory_data_sink
The sink that stores temporary buffers put into it into some external collection is useful on its own. It's used in tests, that store buffers in stringstream, it's used by memcache, that stores buffers into a vector of vectors of buffers, and it's used in Scylla, which accumulates buffers in a vector decorated with som...
diff --git a/apps/memcached/memcache.cc b/apps/memcached/memcache.cc index b44099ad597..17b8520957f 100644 --- a/apps/memcached/memcache.cc +++ b/apps/memcached/memcache.cc @@ -42,6 +42,11 @@ #include <seastar/core/print.hh> #include <seastar/net/api.hh> #include <seastar/util/memory-data-source.hh> + +using matrix_...
7
5
1
[{"id": "G0", "claim": "The generic append_buffers calls c.reserve(bufs.size()), reserving capacity for the number of buffers instead of the number of additional elements, which can cause multiple reallocations; it should reserve c.size() + bufs.size().", "category": "performance", "verdict": "supported", "priority": "...
null
scylladb__seastar__3210
scylladb/seastar
3,210
defect
f55dc7ebed59b725ee31a8186ef23a2bbcf4ef7d
4ce78ec1eee38bbae2ec14ddebf68270aa0de2e4
Introduce "integrated queue length" metrics and use it for IO classes
Sometimes a performance metrics is inherently volatile and fluctuates rapidly. The great example of such a metrics is length of task queues or IO queues. Nowadays those values are exported as gauges. When monitoring system periodically "scrapes" (polls) those values, the collected data point is merely a snapshot of the...
diff --git a/include/seastar/util/integrated-length.hh b/include/seastar/util/integrated-length.hh new file mode 100644 index 00000000000..697a683e573 --- /dev/null +++ b/include/seastar/util/integrated-length.hh @@ -0,0 +1,117 @@ +#pragma once + +namespace seastar { +namespace util { + +// +// Integrates frequently ch...
4
2
0
[{"id": "G0", "claim": "The class should not require manual checkpointing (or `integral()` should account for the time since the last checkpoint), because otherwise it is very easy to get bogus data such as a stale queue length making the rate drop to 0 for a period and then jump.", "category": "design", "verdict": "un...
null
scylladb__seastar__3237
scylladb/seastar
3,237
defect
ac1e366c55f9f230d3cc09cd6e2079acb2317af2
902efad8a1d28dfc55461ee601ad1e68462cc76e
test: add fuzz testing infrastructure and sstring fuzzer
Initial fuzzing support, only supports fuzzing stuff which doesn't require the reactor. Adding reactor support now. The only bug the fuzzer found for sstring was the `npos` one (see #3236), so that's good I guess. I did test it by introducing a few subtle bugs and it found them. ## Summary - Add fuzz testing i...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fc2d7e4c79..7533ddbfc87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,11 +182,45 @@ mark_as_advanced ( CMAKE_EXE_LINKER_FLAGS_SANITIZE CMAKE_SHARED_LINKER_FLAGS_SANITIZE) +set (CMAKE_CXX_FLAGS_FUZZ + "-O1 -g" + CACHE + STRING + "Flags used b...
2
1
0
[{"id": "G0", "claim": "'fuzz' may not be right as a build mode, since it applies to the whole tree while e.g. apps/iotune would not benefit from being built in that mode.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a GitHub Actions workflow that ...
null
scylladb__seastar__3243
scylladb/seastar
3,243
defect
9093b6c8b160e4225ad4b140f013b299de98416a
306bf3afdbf5e8e02b0b31c3b483b72153cf3d0d
Move reactor::fdatasync() into posix_file_impl
The method in question is alien to reactor and is performs file IO. Also, it works on a file descriptor, but seastar file API is about class file, not descriptors. While moving the PR solves a feature request to open files with the ability to skip flushes (#2713), and facilitates the AIO-less implementation of fdata...
diff --git a/include/seastar/core/file.hh b/include/seastar/core/file.hh index 9dc33cd07eb..a9083fcd757 100644 --- a/include/seastar/core/file.hh +++ b/include/seastar/core/file.hh @@ -97,6 +97,7 @@ struct file_open_options { uint64_t sloppy_size_hint = 1 << 20; ///< Hint as to what the eventual file size will be ...
6
5
3
[{"id": "G0", "claim": "The new reactor::fdatasync() wrapper is missing the early return when _cfg.bypass_fsync is set that the old implementation had, and that check should be restored at the beginning of the method.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
scylladb__seastar__3249
scylladb/seastar
3,249
defect
7e457cf72dad2987c8fbf8f2382ea712e8bf1c34
92e49ca621ff9ea72a0b1f7c064db64388a23fba
Refine posix file .dup() implementation
There are two issues with posix_file_impl::dup() First, despite being documented that file-handle can only be obtainer for read-only files, posix files generate handles for any file. Second, when a file-handle is converted back to a file, the result is always posix_file_real_impl, even though the handle could be ...
diff --git a/src/core/file-impl.hh b/src/core/file-impl.hh index 54c76b3fef0..2faf0677fbc 100644 --- a/src/core/file-impl.hh +++ b/src/core/file-impl.hh @@ -40,6 +40,7 @@ struct fs_info; } class posix_file_handle_impl : public seastar::file_handle_impl { + std::type_index _impl_type; int _fd; std::atom...
1
1
0
[{"id": "G0", "claim": "Instead of passing a type_info into do_dup() and storing a type_index in the handle that to_file() switches over with an if-chain, pass a maker function (or otherwise have distinct file_handle_impl types per impl) — the reviewer thinks that would be more accurate and cleaner.", "category": "desi...
null
scylladb__seastar__3278
scylladb/seastar
3,278
defect
0091938dc732cc02cdefc58544fe247a99c02f6f
62cff4b1af93ad3eb5ba8b134bc8a4f44b016d88
websocket: add template parameter for text/binary frame mode and implement client-side WebSocket
Add a template parameter `text_frame` to `connection`, `client_connection`, and `client` classes to support both text and binary frame modes. Implement the client-side WebSocket functionality including: - WebSocket client connection handling with HTTP upgrade handshake - Frame exchange protocol implementation - Clie...
diff --git a/CMakeLists.txt b/CMakeLists.txt index e66210cfb43..ec7d14cbd9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -705,6 +705,7 @@ add_library (seastar include/seastar/util/variant_utils.hh include/seastar/util/closeable.hh include/seastar/util/short_streams.hh + include/seastar/websocket/client...
6
6
0
[{"id": "G0", "claim": "Use coroutines instead of future-chaining in the demo code, which is much more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer coroutines over explicit future chaining in the new websocket client/server te...
null
scylladb__seastar__3300
scylladb/seastar
3,300
defect
14fdc44876810697a50c996e836f98e3ca390f4d
fc4b1e0f2ecf960961a7cc04f5d5d405c22e56f2
reactor: add get_all_io_queues() method
## Summary - Move `get_io_queue` and `try_get_io_queue` out of the header into reactor.cc — no reason for these to be inline - Add `get_all_io_queues()` returning `std::vector<io_queue*>` for all io_queues on the current shard This method doesn't expose any additional info beyond what is already exposed, but prevents ...
diff --git a/include/seastar/core/reactor.hh b/include/seastar/core/reactor.hh index f3e4b248588..ff856b91c0d 100644 --- a/include/seastar/core/reactor.hh +++ b/include/seastar/core/reactor.hh @@ -487,19 +487,11 @@ public: return now() - _start_time; } - io_queue& get_io_queue(dev_t devid = 0) { - ...
3
1
1
[{"id": "G0", "claim": "Because io_queue-s can be shared between two distinct dev-s (#2738), the vector returned by get_all_io_queues() can contain duplicates.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Exporting get_all_io_queues() as public AP...
null
scylladb__seastar__3308
scylladb/seastar
3,308
defect
1f05a334f72f999fbe46218e305dc15f1854c38e
14b4c409b719667ada06774f12f0e3fa7830ac81
Add exhaustive input_stream invariant test + fixes
This PR adds a new combinatorial test for input_stream that exhaustively exercises all combinations of source chunk patterns and read/skip operation sequences, verifying data integrity, per-operation size constraints, and the contract that data_source::get() is never called after EOF. The test found some bugs along ...
diff --git a/include/seastar/core/iostream-impl.hh b/include/seastar/core/iostream-impl.hh index 6df69d4cf05..564dc6d8b80 100644 --- a/include/seastar/core/iostream-impl.hh +++ b/include/seastar/core/iostream-impl.hh @@ -39,6 +39,7 @@ inline future<temporary_buffer<char>> data_source_impl::skip(uint64_t n) ret...
2
2
1
[{"id": "G0", "claim": "The eof() flag design makes data_source users check eof() themselves (a large change); skip(n) should instead throw when fewer than n bytes are present, even though that is technically a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
scylladb__seastar__3310
scylladb/seastar
3,310
defect
1f05a334f72f999fbe46218e305dc15f1854c38e
663a137a5bc7dfc83b936ca57a0b56ef043f7c01
coroutine: Generator cleanups
This changeset includes a handful cleanups identified when reviewing the generator implementation and the original C++23 P2502R2 proposal.
diff --git a/include/seastar/coroutine/generator.hh b/include/seastar/coroutine/generator.hh index 8317ecfed26..c67a10eba40 100644 --- a/include/seastar/coroutine/generator.hh +++ b/include/seastar/coroutine/generator.hh @@ -26,6 +26,7 @@ #include <iterator> #include <memory> #include <optional> +#include <ranges> ...
1
1
1
[{"id": "G0", "claim": "Reviewer asks whether std::ranges::borrowed_range is relevant here as the move-versus-copy criterion in yield_value, where the code currently uses !std::is_reference_v<Range>.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__seastar__3353
scylladb/seastar
3,353
defect
4c98edfbdb233400ef4568664880849ccdba612f
73ac280a8b05eddf04f3dfc4f044b11c106f2794
reactor: support rename2
This is useful if you want to rename something but only if the destination file does not exist.
diff --git a/include/seastar/core/reactor.hh b/include/seastar/core/reactor.hh index eb790a96fd1..7369a29b888 100644 --- a/include/seastar/core/reactor.hh +++ b/include/seastar/core/reactor.hh @@ -553,6 +553,7 @@ public: future<struct statvfs> statvfs(std::string_view pathname) noexcept; future<> remove_file(...
4
4
3
[{"id": "G0", "claim": "Instead of adding a separate rename_file2 method, extend the existing rename_file with a flags parameter that defaults to the old behaviour, which is backward-compatible enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do no...
null
scylladb__seastar__3363
scylladb/seastar
3,363
defect
485a62b2c3eaf6de985bd1f304af1e77a4da653a
5936bf5a7d435cd4d481a9ee68daaca20f52cc1c
file: add mmap support to file
Introduce file::mmap() and a file_mapping class to support memory-mapped files. This is primarily intended for shared memory use cases (e.g., tmpfs) where data resides in RAM. Both mmap and unmap are performed asynchronously via the reactor's thread pool to avoid blocking the reactor thread on kernel memory manage...
diff --git a/include/seastar/core/file.hh b/include/seastar/core/file.hh index 4b87b887e76..8cee8efbbd9 100644 --- a/include/seastar/core/file.hh +++ b/include/seastar/core/file.hh @@ -115,6 +115,89 @@ class file_handle; class file_data_sink_impl; class file_data_source_impl; +/// \brief A memory mapped region of a...
6
6
2
[{"id": "G0", "claim": "The internal file_mapping(void*, size_t) constructor should be private.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SEASTAR_ASSERT in ~file_mapping is too harsh; log a warning in the .cc instead of crashing.", "category": "...
null
scylladb__seastar__3366
scylladb/seastar
3,366
defect
bcee523dc13f6d5659854c6286b75d553fa9d631
6b0d38b2c000a7991f41f6463a5d33bdaf7ff274
future: fix forwarding of reference types
Turns out, perfect forwarding is sufficient to support both rvalue and lvalue references without needing a separate overload for `const value_type&`. Additionally, it fixes accidental copies or moves when returning references from continuations by properly propagating the return type using `decltype(auto)`. I...
diff --git a/include/seastar/core/future.hh b/include/seastar/core/future.hh index ce23456f34a..cbfc09a9a95 100644 --- a/include/seastar/core/future.hh +++ b/include/seastar/core/future.hh @@ -1305,7 +1305,7 @@ template <typename Func, typename T> using future_result_t = typename future_result<Func, T>::type; templ...
1
1
0
[{"id": "G0", "claim": "The test should use `unmovable_object` directly instead of aliasing it as `type`, which obfuscates the type in the test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
scylladb__seastar__893
scylladb/seastar
893
defect
c7df39f79ca771471baaa8ea98dfd49a382a8e4a
3878eb4c60f4500941482f79428516707b6d163a
seastar-addr2line: support oneline backtrace in resolve call
Move splitting of the processed line to BacktraceResolver.__call__ so that it can match all the addressed on a single line (that might be prefixed by non-address text). Define BacktraceParser to categorize each line as either None, SEPARATOR, or ADDRESS and return the parsed results in a dictionary containing t...
diff --git a/scripts/seastar-addr2line b/scripts/seastar-addr2line index 6ecb05797c0..daf5b299037 100755 --- a/scripts/seastar-addr2line +++ b/scripts/seastar-addr2line @@ -23,6 +23,7 @@ import collections import re import sys import subprocess +from enum import Enum class Addr2Line: def __init__(self, binar...
2
1
1
[{"id": "G0", "claim": "The oneline backtrace parser does not handle nested-exception output — a line containing a nested exception's backtrace followed by arbitrary trailing text (e.g. \"(while cleaning up after ...)\") is not matched, and tgrabiec suggested allowing arbitrary characters at the end and eventually capt...
null
sd2k__rocket_prometheus__23
sd2k/rocket_prometheus
23
defect
82cd9fcc873358e28219818046b0cfaf09b45f6b
04be8f5313a3e5c2ae6cabeb976a50b499ed1a97
Add an optional request filter for `PrometheusMetrics`
This will allow users to filter out some requests from metrics, namely requests to `/metrics` Fixes #22
diff --git a/src/lib.rs b/src/lib.rs index 3577832..e7fdc5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -198,6 +198,10 @@ pub struct PrometheusMetrics { // // See `rocket_registry` for details on why these metrics are stored on a separate registry. custom_registry: Registry, + + // Option for request ...
1
1
1
[{"id": "G0", "claim": "Update the integration test in tests/integration.rs to add a client call to /metrics with a request filter matching that call, and assert that the metrics text is unchanged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sdcoffey__techan__35
sdcoffey/techan
35
defect
a2f4ef854b8a460ee1e084958ebad76183b87c2e
2c948495ad5caf8198d12337d185e538caae446e
Implement Stochastic Oscillator Indicator
https://www.investopedia.com/terms/s/stochasticoscillator.asp
diff --git a/go.mod b/go.mod index c81959c..8402beb 100644 --- a/go.mod +++ b/go.mod @@ -5,4 +5,4 @@ go 1.12 require ( github.com/sdcoffey/big v0.7.0 github.com/stretchr/testify v1.7.0 -) +) \ No newline at end of file diff --git a/go.sum b/go.sum index b27272a..65e99d9 100644 --- a/go.sum +++ b/go.sum @@ -16,4 +1...
1
1
0
[{"id": "G0", "claim": "The stochastic oscillator tests could be made less repetitive by using the existing `indicatorEquals` test helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sddm__sddm__806
sddm/sddm
806
defect
10352e08aae4a683fa804010e47bdac459892406
8c49f96b2c1a720fcbc11212b0174d5161ef3520
Conf dir
Load configuration information from config directories Our configuration generally consists of user set config options and distro defined options. For example, a distro might want to specify a custom theme, but the user's autostart name can't come from the distro. Using the same config file leads to problems...
diff --git a/CMakeLists.txt b/CMakeLists.txt index fe8074b03..bba223554 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,8 @@ set(SESSION_COMMAND "${DATA_INSTALL_DIR}/scripts/Xsession" set(WAYLAND_SESSION_COMMAND "${DATA_INSTALL_DIR}/scripts/wayland-session" CACHE PATH "Script...
3
3
0
[{"id": "G0", "claim": "The new set(SYSTEM_CONFIG_DIR ...) line in CMakeLists.txt should have one more space before CACHE so it aligns with the surrounding set() entries.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new #define CONFIG_DIR ...
null
sdnfv__openNetVM__11
sdnfv/openNetVM
11
defect
b4a0a9a5fce8feab029184255c52b5a8303f75b4
caa22799f7f458382203132d73230204fd5bf3a7
Fixed inconsistent packet counters in 4 examples
If you run an e.g., bridge NF and start injecting millions of pps for a long period of time, the int packet counters run out of memory. This patch overcomes this problem. You can probably follow similar approach to fix other examples.
diff --git a/examples/basic_monitor/monitor.c b/examples/basic_monitor/monitor.c index b8c8ef317..aed9f0d90 100644 --- a/examples/basic_monitor/monitor.c +++ b/examples/basic_monitor/monitor.c @@ -112,7 +112,7 @@ static void do_stats_display(struct rte_mbuf* pkt) { const char clr[] = { 27, '[', '2', 'J', '\0'...
2
2
2
[{"id": "G0", "claim": "If other NFs handle the packet counters the same inconsistent way, they should be fixed in the same way in this PR too, rather than merging with only the four examples covered.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
sdnfv__openNetVM__128
sdnfv/openNetVM
128
defect
752152556619b32d160396944bc20505b478c70b
ef69f106a51b7d65f6f2d36a790e1aab38c694a0
Rename Shared CPU Mode to Shared Core Mode
Current name doesn't fit well as NFs are sharing cores. <!-- Add detailed description and provide running instructions --> ## Summary: Ran cscope and changed everything, hopefully didn't miss anything <!-- Check list of the things this PR accomplishes --> | This PR includes | | | ------------...
diff --git a/docs/NF_Dev.md b/docs/NF_Dev.md index 16e7b1d0c..3e2dd6e77 100644 --- a/docs/NF_Dev.md +++ b/docs/NF_Dev.md @@ -42,7 +42,7 @@ Example use of Advanced Rings can be seen in the speed_tester NF or the scaling NFs can scale by running multiple threads. For launching more threads the main NF had to be launched...
2
2
0
[{"id": "G0", "claim": "Shorten the trailing comment on the ONVM_NF_CORE_SHARING_DEFAULT define in onvm/onvm_nflib/onvm_common.h (e.g. to '// default for shared core logic, if true NFs sleep while waiting for packets') so that line 70, currently 123 characters, passes the 120-character linter limit.", "category": "styl...
null
sdroege__async-tungstenite__159
sdroege/async-tungstenite
159
defect
73c1ea32549a340c3913fb3a7f8167142f03c3d5
f577b818ec12a24b0eafdc3cf3c01f95ae69be76
Add `WebSocketStream::split` method
Implements #155 The current implementation is simple - it's an `Arc<Mutex<_>>`. Some optimizations might be possible in the future. I also did some minor refactoring to de-duplicate code during the process. I'll write an integration with the `ByteWriter` type later, if this PR will be ok.
diff --git a/src/lib.rs b/src/lib.rs index edd4322..5f9d696 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,6 +61,7 @@ pub mod stream; use std::{ io::{Read, Write}, pin::Pin, + sync::{Arc, Mutex}, task::{ready, Context, Poll}, }; @@ -283,7 +284,6 @@ impl<S> WebSocketStream<S> { fn with_cont...
2
1
0
[{"id": "G0", "claim": "The split implementation should use an async mutex instead of the sync std Mutex.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G4", "claim": "The hand-rolled split implementation is probably less performant than the BiLock approach used in fut...
null
sdv-dev__SDV__1312
sdv-dev/SDV
1,312
defect
24f5a548ab486f5f015fa2d37bdad2016d421e26
666e2f43f95b9f992c0de8ae979be070de9e4787
Error if invalid columns passed to FixedCombinations
Resolve #1306
diff --git a/sdv/constraints/tabular.py b/sdv/constraints/tabular.py index 0414fbbe7..ec6581dce 100644 --- a/sdv/constraints/tabular.py +++ b/sdv/constraints/tabular.py @@ -235,6 +235,19 @@ class FixedCombinations(Constraint): _combinations_to_uuids = None _uuids_to_combinations = None + @staticmethod + ...
2
2
1
[{"id": "G0", "claim": "The PR must call `_validate_metadata_specific_to_constraint` somewhere in the code so the new validation is actually used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a blank line before the `if invalid_columns:` state...
null
sdv-dev__SDV__1343
sdv-dev/SDV
1,343
defect
1f216d7de6f55855b78942de147286f3122a03c9
03d6d6239d0e0caa4ad4823d5ca8097494980d41
Add version add-on discovery
Resolve #1309
diff --git a/sdv/__init__.py b/sdv/__init__.py index 7475a2815..3ab5e71c6 100644 --- a/sdv/__init__.py +++ b/sdv/__init__.py @@ -7,3 +7,23 @@ __author__ = 'DataCebo, Inc.' __email__ = 'info@sdv.dev' __version__ = '1.0.1.dev0' + +import warnings + +from pkg_resources import iter_entry_points + + +def _add_version(): ...
1
1
0
[{"id": "G0", "claim": "Make the version add-on loader a general-purpose method that discovers all modules in the `sdv_modules` group and adds them to the globals keyed by their name, instead of a `_add_version` specific to the version add-on.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "...
null
sdv-dev__SDV__1374
sdv-dev/SDV
1,374
defect
33f9574af1a1bd5482cf1dc82e42baa0cd625ac8
4e1038f7fc702e3be98b33cd0f46e67473a65e24
Pandas FutureWarning: Length 1 tuple will be returned
Resolve #1356
diff --git a/sdv/constraints/base.py b/sdv/constraints/base.py index 82e50927d..46c013261 100644 --- a/sdv/constraints/base.py +++ b/sdv/constraints/base.py @@ -497,7 +497,8 @@ def sample(self, table_data): Table data with additional ``constraint_columns``. """ condition_columns = [c ...
2
2
1
[{"id": "G0", "claim": "Instead of repeating the same logic 4 times, create a function in sdv/utils.py and call that function on the code to make it more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Could we have a unit test or somet...
null
sdv-dev__SDV__1380
sdv-dev/SDV
1,380
defect
33f9574af1a1bd5482cf1dc82e42baa0cd625ac8
42d7695ce48c72801e2f1904ea68cce3d0d506cf
RuntimeWarning: invalid value encountered in cast.
resolves #1369
diff --git a/sdv/constraints/tabular.py b/sdv/constraints/tabular.py index 6be7eea8b9..fb35502ae7 100644 --- a/sdv/constraints/tabular.py +++ b/sdv/constraints/tabular.py @@ -40,7 +40,7 @@ from sdv.constraints.errors import ( AggregateConstraintsError, ConstraintMetadataError, FunctionError, InvalidFunctionError)...
2
1
0
[{"id": "G0", "claim": "Finish the incomplete test docstring, which reads \"Test that \" and stops mid-sentence.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why is display_tables being deleted — is it just not used anymore?", "category": "desig...
null
sdv-dev__SDV__1431
sdv-dev/SDV
1,431
defect
0e39f0f9490b704fe3e9bf48d2795cca8870c341
348ff99669f465f80868a995e9fa9dc61c954bd8
Get rid of unnecessary methods for single table sampling
resolves #1430
diff --git a/sdv/single_table/base.py b/sdv/single_table/base.py index cca3a7cb7..de93c3e1f 100644 --- a/sdv/single_table/base.py +++ b/sdv/single_table/base.py @@ -968,9 +968,35 @@ def _sample_with_conditions(self, conditions, max_tries_per_batch, batch_size, return all_sampled_rows - def _sample_from_...
1
1
0
[{"id": "G0", "claim": "The test's docstring should drop the underscore and reference `sample_from_conditions` instead of `_sample_from_conditions`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sdv-dev__SDV__1453
sdv-dev/SDV
1,453
defect
e2ce243db1e98d194c3cbf04548d6b3ee24c66ee
a55b0e34cc3c692331a75361a530fd42182fae4d
Detect all addons from top level __init__
Improve add-on detection to automatically detect and add all addons from the top level `__init__.py`
diff --git a/Makefile b/Makefile index f190f48f9..d4acd8e18 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ lint: ## check style with flake8 and isort .PHONY: fix-lint fix-lint: ## fix lint issues using autoflake, autopep8, and isort - find sdv tests -name '*.py' | xargs autoflake --in-place --remove-all-u...
3
3
0
[{"id": "G0", "claim": "The submodules imported in sdv/__init__.py should be listed in `__all__` (pvk-developer suggesting a `from sdv import (...)` form), which would also resolve the F401 lint errors on those imports.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
sdv-dev__SDV__1534
sdv-dev/SDV
1,534
defect
d23771c5589ce81d73b216498773ec704c3bb5f3
460309c56f6c9549c47b87618ff92ae37c8c4643
Add summarize to metadata
Resolves #1525 * Full <img width="373" alt="image" src="https://github.com/sdv-dev/SDV/assets/41479552/823f1cf7-26ff-4ed7-8039-baa96419cba1"> * Summarized <img width="459" alt="image" src="https://github.com/sdv-dev/SDV/assets/41479552/729c3172-2af1-407e-a1a9-812cca688eaf"> * None <img width="376"...
diff --git a/sdv/metadata/multi_table.py b/sdv/metadata/multi_table.py index 4c9ffdfc6..6e8ba8e8a 100644 --- a/sdv/metadata/multi_table.py +++ b/sdv/metadata/multi_table.py @@ -516,14 +516,16 @@ def add_table(self, table_name): self.tables[table_name] = SingleTableMetadata() - def visualize(self, show_t...
4
4
1
[{"id": "G0", "claim": "Remove the word `show` before `the column names` in the docstring's 'full' case.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the missing comma after `'summarized'` in the docstring.", "category": "documentation", "ve...
null
sdv-dev__SDV__1612
sdv-dev/SDV
1,612
defect
ac4a69122bb344cee25461affba256c8e266e58b
f9ef44e433b54435688968ba5fafa3e2f3643e77
Check and supply a more descriptive error when trying to use 'gaussian_kde' with HMA
Resolve #1604
diff --git a/sdv/multi_table/hma.py b/sdv/multi_table/hma.py index 55013f646..3d20f96cd 100644 --- a/sdv/multi_table/hma.py +++ b/sdv/multi_table/hma.py @@ -8,6 +8,7 @@ import pandas as pd from tqdm import tqdm +from sdv.errors import SynthesizerInputError from sdv.multi_table.base import BaseMultiTableSynthesizer...
1
1
0
[{"id": "G0", "claim": "The multi-line `if` condition in `set_table_parameters` should be split, assigning the `any(...)` check over `numerical_distributions` to a `has_gaussian_kde` variable, for better readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sdv-dev__SDV__1664
sdv-dev/SDV
1,664
defect
3bef91e5fdbb5c69806dc052ff1168d55f85cb13
3019dc5917063e23f68373f2bc6dab314e588b95
Add `_estimate_num_columns` method to ctgan
CU-86ayfuk2q Resolve #1657. Note: this doesn't implement the error message described in the issue - "if transformers haven't been determined yet, throw an error" - because `get_transformers` does that internally.
diff --git a/sdv/single_table/ctgan.py b/sdv/single_table/ctgan.py index 6523aee27..e8845f5f0 100644 --- a/sdv/single_table/ctgan.py +++ b/sdv/single_table/ctgan.py @@ -108,6 +108,33 @@ def __init__(self, metadata, enforce_min_max_values=True, enforce_rounding=True, 'cuda': cuda } + def _esti...
2
2
1
[{"id": "G0", "claim": "The category-count estimate should use `dropna=False` so NaN values are handled (counted) as a category.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a docstring line explaining that continuous columns generate 11 colum...
null
sdv-dev__SDV__1681
sdv-dev/SDV
1,681
defect
d2df3649a55c7fdbb0821130fa8414d10f42070c
5fdae3b1493feb7c42a488a072d5c0ee598c698c
Allow me to access loss values for GAN-based synthesizers
Resolve #1671
diff --git a/sdv/multi_table/base.py b/sdv/multi_table/base.py index cc8ae9751..a00eb8d8b 100644 --- a/sdv/multi_table/base.py +++ b/sdv/multi_table/base.py @@ -406,6 +406,29 @@ def get_learned_distributions(self, table_name): f"table because it uses the '{synthesizer.__class__.__name__}'." ) + ...
3
3
1
[{"id": "G0", "claim": "The ``get_loss_values`` method on PARSynthesizer is no longer needed because the mixin now provides it and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "``get_loss_values`` should error when a bad table name is...
null
sdv-dev__SDV__1716
sdv-dev/SDV
1,716
defect
946f3423f31bf2da37493a770a0dfe4932b7821f
4e70fd362414bf6bebb3c17fe275f4d5fe72835a
Add add_column_relationship method to single table metadata
CU-86aytvu71 Resolve #1699
diff --git a/sdv/metadata/multi_table.py b/sdv/metadata/multi_table.py index 74a4efa0d..cbac141f6 100644 --- a/sdv/metadata/multi_table.py +++ b/sdv/metadata/multi_table.py @@ -564,19 +564,20 @@ def set_sequence_index(self, table_name, column_name): warnings.warn('Sequential modeling is not yet supported on SD...
3
3
1
[{"id": "G0", "claim": "The multi-table integration test should add an assert that the column relationship was actually added instead of only assigning to it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An integration test for add_column_relationship...
null
sdv-dev__SDV__1732
sdv-dev/SDV
1,732
defect
f25037ba6b7f48ffb86a53745ac57bc900e7af6e
159195bd056a77749056f44c263e4a8d001bf630
Update `_get_is_datetime` constraint logic to use the metadata
CU-86aytb6w0, Resolve #1692
diff --git a/sdv/constraints/tabular.py b/sdv/constraints/tabular.py index 4de025c71..3895ce8e5 100644 --- a/sdv/constraints/tabular.py +++ b/sdv/constraints/tabular.py @@ -618,9 +618,8 @@ def __init__(self, column_name, relation, value): self._dtype = None self._operator = INEQUALITY_TO_OPERATION[rel...
2
1
0
[{"id": "G0", "claim": "The constraints should pass the metadata datetime_format when converting with pd.to_datetime, since converting a string column without the format can fail.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Add an integration t...
null
sdv-dev__SDV__1764
sdv-dev/SDV
1,764
defect
e6e508ba197b104dea3fca96fea34d9bbf9a8cd7
d7c672a29488bd832e25f3757a19091295dc9e1e
Clip HMASynthesizer out-of-bounds parameters
CU-86az6fmfu, Resolve #1691.
diff --git a/sdv/multi_table/base.py b/sdv/multi_table/base.py index 1c0bbfe52..5fa51c241 100644 --- a/sdv/multi_table/base.py +++ b/sdv/multi_table/base.py @@ -74,6 +74,7 @@ def __init__(self, metadata, locales=None, synthesizer_kwargs=None): self.metadata.validate() self.locales = locales s...
2
2
2
[{"id": "G0", "claim": "Nan values may be an issue in the fitted FloatFormatters: if parameters cannot be obtained for a child the extension columns end up nan and the whole augmented table gets cleared in line 366, so the fitting should be moved to after that clearing.", "category": "correctness", "verdict": "supporte...
null
sdv-dev__SDV__1822
sdv-dev/SDV
1,822
defect
1a26d18bc73abefcefda6724c96cb5f3a6f579b9
fe18020e48f4119497f11dbdddfbaf047bd1068f
Fix drop_unknown_references for null foreign keys
CU-86azg9kz9 Resolve #1820
diff --git a/sdv/_utils.py b/sdv/_utils.py index 5ab70a168..e9ed5ff6b 100644 --- a/sdv/_utils.py +++ b/sdv/_utils.py @@ -8,6 +8,8 @@ import pandas as pd from pandas.core.tools.datetimes import _guess_datetime_format_for_array +from sdv.errors import SynthesizerInputError + def _cast_to_iterable(value): """R...
1
1
0
[{"id": "G0", "claim": "Rename the new `_validate_foreign_keys` helper in sdv/_utils.py to `_validate_foreign_keys_not_null` (or similar) so it doesn't get confused with the same-named `_validate_foreign_keys` method in the multi-table metadata.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
sdv-dev__SDV__1824
sdv-dev/SDV
1,824
defect
a1a259c91dc39a0e85d8a4026d80e530ce229c3d
8b1b52381ae5c28937c3b611b3c7691b64708b4b
Add `update_columns` and `update_columns_metadata` methods to metadata
CU-86azdw150 Resolve #1804
diff --git a/sdv/metadata/multi_table.py b/sdv/metadata/multi_table.py index 1658b01ba3..5333dc64ca 100644 --- a/sdv/metadata/multi_table.py +++ b/sdv/metadata/multi_table.py @@ -387,6 +387,34 @@ def update_column(self, table_name, column_name, **kwargs): table = self.tables.get(table_name) table.upda...
4
3
2
[{"id": "G0", "claim": "The docstring of update_columns_metadata has a doubled period (\"dictionary..\") that should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "update_columns and update_columns_metadata apply updates column by colu...
null
sdv-dev__SDV__1826
sdv-dev/SDV
1,826
defect
a1a259c91dc39a0e85d8a4026d80e530ce229c3d
0589e6c2739888373b9ec0db6e72e261338af827
Add `get_column_names` method to metadata
CU-86azdw14u Resolve #1805
diff --git a/sdv/metadata/multi_table.py b/sdv/metadata/multi_table.py index 1658b01ba..cdacaf138 100644 --- a/sdv/metadata/multi_table.py +++ b/sdv/metadata/multi_table.py @@ -821,6 +821,22 @@ def add_table(self, table_name): self.tables[table_name] = SingleTableMetadata() self._multi_table_updated =...
1
1
0
[{"id": "G0", "claim": "For consistency, the new `get_column_names` methods should keep `**kwargs` as the parameter name or update all existing methods that use `**kwargs` to use `**metadata_kwargs`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sdv-dev__SDV__1841
sdv-dev/SDV
1,841
defect
6222922ddbb2bc236a72422e189c7baeb8a5b03d
a1afa90a3b561205a34f3de32d35c5944813f0e4
Use `AnonymizedFaker` for primary keys
CU-86azdzv1n, Resolve #1807.
diff --git a/sdv/data_processing/data_processor.py b/sdv/data_processing/data_processor.py index 497521d68..cd7a38717 100644 --- a/sdv/data_processing/data_processor.py +++ b/sdv/data_processing/data_processor.py @@ -605,7 +605,15 @@ def _create_config(self, data, columns_created_by_constraints): elif sd...
1
1
1
[{"id": "G0", "claim": "A test should be added for the new behavior of using AnonymizedFaker for primary keys.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sdv-dev__SDV__1854
sdv-dev/SDV
1,854
defect
7b1b9b75596ed98813af782daacb058c6ae8b4ce
8def6dfb905de8ab1cd8659d6beae13275354a94
Add verbosity to `drop_unknown_references`
CU-86aznj0ht Resolve #1845 @npatki I slightly changed the message printed compared to the issue let me know if it works: - Data with referential integrity: <img width="440" alt="Screenshot 2024-03-18 at 14 43 30" src="https://github.com/sdv-dev/SDV/assets/116157184/19221042-a062-4ca1-a710-da9ec300c976"> - Da...
diff --git a/sdv/utils/poc.py b/sdv/utils/poc.py index 19a2cdff9..ac83b786a 100644 --- a/sdv/utils/poc.py +++ b/sdv/utils/poc.py @@ -1,10 +1,14 @@ """Utility functions.""" +import sys + +import pandas as pd + from sdv._utils import ( _get_relationship_for_child, _get_rows_to_drop, _validate_foreign_keys_not_null...
3
2
1
[{"id": "G0", "claim": "The PR should not special-case the output: it must always print the summary table for every table (removing the 'No rows were dropped.' branch, the 'Summary of the number of rows dropped:' line and their special-case expectations in the tests), as the spec says.", "category": "correctness", "ver...
null