mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 20:00:36 +00:00
feat: Add FlushPicker to flush regions periodically (#1559)
* feat: Add FlushPicker * feat(storage): Add close to StorageEngine * style(storage): fix clippy * feat(storage): Close regions in StorageEngine::close * chore(storage): Clear requests on scheduler stop * test(storage): Test flush picker * feat(storage): Add metrics for auto flush * feat(storage): Add flush reason and record it in metrics * feat: Expose flush config docs(config): Update config example * refactor(storage): Run auto flush task in FlushScheduler * refactor(storage): Add FlushItem trait to make FlushPicker easy to test
This commit is contained in:
@@ -160,7 +160,8 @@ mod tests {
|
||||
Arc::new(log_store),
|
||||
object_store.clone(),
|
||||
compaction_scheduler,
|
||||
),
|
||||
)
|
||||
.unwrap(),
|
||||
object_store,
|
||||
));
|
||||
let engine_manager = Arc::new(MemoryTableEngineManager::new(mock_engine.clone()));
|
||||
|
||||
Reference in New Issue
Block a user