Skip to content

Commit 1871724

Browse files
committed
Enable persist_enable_incremental_compaction in CI
1 parent 70d6d19 commit 1871724

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

misc/python/materialize/mzcompose/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ def get_variable_system_parameters(
315315
"83886080",
316316
["67108864", "134217728", "536870912", "1073741824"],
317317
),
318+
VariableSystemParameter(
319+
"persist_enable_incremental_compaction",
320+
("true" if version > MzVersion.parse_mz("v0.154.0-dev") else "false"),
321+
(
322+
["true", "false"]
323+
if version > MzVersion.parse_mz("v0.154.0-dev")
324+
else ["false"]
325+
),
326+
),
318327
VariableSystemParameter(
319328
"persist_use_critical_since_catalog", "true", ["true", "false"]
320329
),
@@ -566,7 +575,6 @@ def get_default_system_parameters(
566575
"compute_peek_response_stash_read_memory_budget_bytes",
567576
"compute_peek_stash_num_batches",
568577
"compute_peek_stash_batch_size",
569-
"persist_enable_incremental_compaction",
570578
"storage_statistics_retention_duration",
571579
"enable_ctp_cluster_protocols",
572580
"enable_paused_cluster_readhold_downgrade",

src/persist-client/src/internal/trace.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use serde::{Serialize, Serializer};
6666
use timely::PartialOrder;
6767
use timely::progress::frontier::AntichainRef;
6868
use timely::progress::{Antichain, Timestamp};
69-
use tracing::error;
69+
use tracing::{error, info};
7070

7171
use crate::internal::paths::WriterKey;
7272
use crate::internal::state::{HollowBatch, RunId};
@@ -1685,6 +1685,7 @@ impl<T: Timestamp + Lattice> Spine<T> {
16851685
// If any merges exist, we can directly call `apply_fuel`.
16861686
self.apply_fuel(&fuel, log);
16871687
} else {
1688+
info!("no merges in progress, introducing empty batch");
16881689
// Otherwise, we'll need to introduce fake updates to move merges
16891690
// along.
16901691

@@ -1754,15 +1755,18 @@ impl<T: Timestamp + Lattice> Spine<T> {
17541755
/// words, there are either zero runs (fully empty) or exactly one logical
17551756
/// run of data remaining.
17561757
fn reduced(&self) -> bool {
1757-
self.spine_batches()
1758+
let total_runs = self
1759+
.spine_batches()
17581760
.map(|b| {
17591761
b.parts
17601762
.iter()
17611763
.map(|p| p.batch.run_meta.len())
17621764
.sum::<usize>()
17631765
})
1764-
.sum::<usize>()
1765-
< 2
1766+
.sum::<usize>();
1767+
let total_spine_batches = self.spine_batches().count();
1768+
info!(?total_runs, ?total_spine_batches, "checking if reduced");
1769+
total_spine_batches < 2
17661770
}
17671771

17681772
/// Describes the merge progress of layers in the trace.

0 commit comments

Comments
 (0)