Skip to content

Commit a15f179

Browse files
ryzhykKarakatiza666
authored andcommitted
[manager] Remove backfill_avoidance dev_tweak.
Allow changing stopped pipelines by default. Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>
1 parent 4ff05a4 commit a15f179

6 files changed

Lines changed: 1 addition & 57 deletions

File tree

crates/dbsp/src/circuit/dbsp_handle.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,6 @@ pub struct DevTweaks {
309309
// adjust `server.rs` accordingly.
310310
pub stack_overflow_backtrace: bool,
311311

312-
/// Enable backfill avoidance feature.
313-
// This flag is only used by the pipeline manager.
314-
pub backfill_avoidance: bool,
315-
316312
/// Controls the maximal number of records output by splitter operators
317313
/// (joins, distinct, aggregation, rolling window and group operators) at
318314
/// each step.
@@ -346,7 +342,6 @@ impl Default for DevTweaks {
346342
merger: MergerType::default(),
347343
storage_mb_max: None,
348344
stack_overflow_backtrace: false,
349-
backfill_avoidance: false,
350345
splitter_chunk_size_records: 10_000,
351346
bloom_false_positive_rate: BLOOM_FILTER_FALSE_POSITIVE_RATE,
352347
}

crates/pipeline-manager/src/db/operations/pipeline.rs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -670,14 +670,6 @@ pub(crate) async fn update_pipeline(
670670
return Ok(current.version);
671671
}
672672

673-
// Check if backfill avoidance is enabled in dev_tweaks
674-
let backfill_avoidance_enabled = current
675-
.runtime_config
676-
.get("dev_tweaks")
677-
.and_then(|dev_tweaks| dev_tweaks.get("backfill_avoidance"))
678-
.and_then(|backfill| backfill.as_bool())
679-
.unwrap_or(false);
680-
681673
// Certain edits are restricted to cleared storage
682674
if current.storage_status != StorageStatus::Cleared {
683675
let mut not_allowed = vec![];
@@ -712,28 +704,7 @@ pub(crate) async fn update_pipeline(
712704
not_allowed.push("`runtime_config.resources.storage_mb_max`");
713705
}
714706
}
715-
if !backfill_avoidance_enabled
716-
&& program_code
717-
.as_ref()
718-
.is_some_and(|v| *v != current.program_code)
719-
{
720-
not_allowed.push("`program_code`")
721-
}
722-
if !backfill_avoidance_enabled && udf_rust.as_ref().is_some_and(|v| *v != current.udf_rust)
723-
{
724-
not_allowed.push("`udf_rust`")
725-
}
726-
if !backfill_avoidance_enabled && udf_toml.as_ref().is_some_and(|v| *v != current.udf_toml)
727-
{
728-
not_allowed.push("`udf_toml`")
729-
}
730-
if !backfill_avoidance_enabled
731-
&& program_config
732-
.as_ref()
733-
.is_some_and(|v| *v != current.program_config)
734-
{
735-
not_allowed.push("`program_config`")
736-
}
707+
737708
if !not_allowed.is_empty() {
738709
return Err(DBError::EditRestrictedToClearedStorage {
739710
not_allowed: not_allowed.iter_mut().map(|s| s.to_string()).collect(),

docs.feldera.com/docs/pipelines/modifying.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,6 @@ pipeline = PipelineBuilder(
378378
TEST_CLIENT,
379379
pipeline_name,
380380
sql=gen_sql("2025-09-01", "2025-12-15"),
381-
runtime_config=RuntimeConfig(
382-
dev_tweaks={
383-
"backfill_avoidance": True
384-
}, # This should not be necessary once it is enabled by default.
385-
),
386381
).create_or_replace()
387382

388383
pipeline.start()

python/feldera/testutils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ def build_pipeline(
256256
compilation_profile=CompilationProfile.OPTIMIZED,
257257
runtime_config=RuntimeConfig(
258258
provisioning_timeout_secs=60,
259-
dev_tweaks={"backfill_avoidance": True},
260259
resources=resources,
261260
),
262261
).create_or_replace()

python/tests/platform/test_bootstrapping.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ def test_bootstrap_enterprise(pipeline_name):
2626
sql=sql,
2727
runtime_config=RuntimeConfig(
2828
fault_tolerance_model=None, # We will make manual checkpoints in this test.
29-
dev_tweaks={
30-
"backfill_avoidance": True
31-
}, # This should not be necessary once it is enabled by default.
3229
),
3330
).create_or_replace()
3431

@@ -281,9 +278,6 @@ def test_bootstrap_non_materialized_table_enterprise(pipeline_name):
281278
sql=sql,
282279
runtime_config=RuntimeConfig(
283280
fault_tolerance_model=None, # We will make manual checkpoints in this test.
284-
dev_tweaks={
285-
"backfill_avoidance": True
286-
}, # This should not be necessary once it is enabled by default.
287281
),
288282
).create_or_replace()
289283

@@ -326,9 +320,6 @@ def test_bootstrap_table_lateness_enterprise(pipeline_name):
326320
sql=sql,
327321
runtime_config=RuntimeConfig(
328322
fault_tolerance_model=None, # We will make manual checkpoints in this test.
329-
dev_tweaks={
330-
"backfill_avoidance": True
331-
}, # This should not be necessary once it is enabled by default.
332323
),
333324
).create_or_replace()
334325

@@ -372,9 +363,6 @@ def test_bootstrap_view_lateness_enterprise(pipeline_name):
372363
sql=sql,
373364
runtime_config=RuntimeConfig(
374365
fault_tolerance_model=None, # We will make manual checkpoints in this test.
375-
dev_tweaks={
376-
"backfill_avoidance": True
377-
}, # This should not be necessary once it is enabled by default.
378366
),
379367
).create_or_replace()
380368

@@ -424,9 +412,6 @@ def gen_sql(connectors):
424412
sql=gen_sql(""),
425413
runtime_config=RuntimeConfig(
426414
fault_tolerance_model=None, # We will make manual checkpoints in this test.
427-
dev_tweaks={
428-
"backfill_avoidance": True
429-
}, # This should not be necessary once it is enabled by default.
430415
),
431416
).create_or_replace()
432417

python/tests/platform/test_update_runtime.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def test_update_runtime(self):
2828
pipeline_name,
2929
sql=sql,
3030
runtime_config=RuntimeConfig(
31-
dev_tweaks={"backfill_avoidance": True},
3231
logging="debug",
3332
),
3433
).create_or_replace()

0 commit comments

Comments
 (0)