Skip to content

Commit c7fc671

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/1763-async-stream-deletion
# Conflicts: # src/storage/object_storage.rs
2 parents b2fa8f0 + 6459688 commit c7fc671

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎docker-compose-distributed-test.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ services:
106106
platform: linux/amd64
107107
image: quay.io/parseablehq/quest:main
108108
pull_policy: always
109+
environment:
110+
- QUEST_EDITION=oss
109111
command:
110112
[
111113
"load",

‎docker-compose-test.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ services:
6464
image: quay.io/parseablehq/quest:main
6565
platform: linux/amd64
6666
pull_policy: always
67+
environment:
68+
- QUEST_EDITION=oss
6769
command: [
6870
"load",
6971
"http://parseable:8000",

‎src/storage/object_storage.rs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,9 +1846,11 @@ mod stream_deletion_dedup_tests {
18461846

18471847
// `spawn_stream_deletion` itself isn't unit-testable here: it reads
18481848
// PARSEABLE.storage/PARSEABLE.streams, and the global PARSEABLE static
1849-
// isn't initialized under `cargo test`. This instead exercises the
1850-
// contains_key-then-insert guard directly against the same map the real
1851-
// function uses, since that guard is the actual dedup mechanism.
1849+
// isn't initialized under `cargo test`. This instead exercises the same
1850+
// map the real function uses. The real function's actual dedup guard is
1851+
// an atomic `entry()` check-and-insert; a plain contains_key-then-insert
1852+
// here is fine since these tests are single-threaded and only need to
1853+
// assert the map's observable state, not re-prove atomicity.
18521854
#[test]
18531855
fn duplicate_key_is_recognized_as_already_running() {
18541856
let key = (Some("tenant-a".to_string()), "stream-a".to_string());

0 commit comments

Comments
 (0)