(retention_ms: u64)
| 17 | use nodedb::engine::timeseries::partition_registry::PartitionRegistry; |
| 18 | |
| 19 | fn test_config(retention_ms: u64) -> TieredPartitionConfig { |
| 20 | let mut cfg = TieredPartitionConfig::origin_defaults(); |
| 21 | cfg.partition_by = PartitionInterval::Duration(86_400_000); // 1d |
| 22 | cfg.merge_after_ms = 7 * 86_400_000; |
| 23 | cfg.merge_count = 3; |
| 24 | cfg.retention_period_ms = retention_ms; |
| 25 | cfg |
| 26 | } |
| 27 | |
| 28 | fn sealed_partition_meta(min_ts: i64, max_ts: i64, max_system_ts: i64) -> PartitionMeta { |
| 29 | PartitionMeta { |
no test coverage detected