mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-27 18:30:38 +00:00
feat: compaction integration (#997)
* feat: trigger compaction on flush * chore: rebase develop * feat: add config item max_file_in_level0 and remove compaction_after_flush * fix: cr comments * chore: add unit test to cover Timestamp::new_inclusive * fix: workaround to fix future is not Sync * fix: future is not sync * fix: some cr comments
This commit is contained in:
@@ -118,6 +118,7 @@ mod tests {
|
||||
use log_store::raft_engine::log_store::RaftEngineLogStore;
|
||||
use log_store::LogConfig;
|
||||
use mito::engine::MitoEngine;
|
||||
use storage::compaction::noop::NoopCompactionScheduler;
|
||||
use storage::config::EngineConfig as StorageEngineConfig;
|
||||
use storage::EngineImpl;
|
||||
use tempdir::TempDir;
|
||||
@@ -135,12 +136,14 @@ mod tests {
|
||||
};
|
||||
|
||||
let log_store = RaftEngineLogStore::try_new(log_config).await.unwrap();
|
||||
let compaction_scheduler = Arc::new(NoopCompactionScheduler::default());
|
||||
let mock_engine = Arc::new(DefaultEngine::new(
|
||||
TableEngineConfig::default(),
|
||||
EngineImpl::new(
|
||||
StorageEngineConfig::default(),
|
||||
Arc::new(log_store),
|
||||
object_store.clone(),
|
||||
compaction_scheduler,
|
||||
),
|
||||
object_store,
|
||||
));
|
||||
|
||||
@@ -962,7 +962,7 @@ pub(crate) mod greptime_builtin {
|
||||
Ok(obj) => match py_vec_obj_to_array(&obj, vm, 1){
|
||||
Ok(v) => if v.len()==1{
|
||||
Ok(v)
|
||||
}else{
|
||||
} else {
|
||||
Err(vm.new_runtime_error(format!("Expect return's length to be at most one, found to be length of {}.", v.len())))
|
||||
},
|
||||
Err(err) => Err(vm
|
||||
|
||||
Reference in New Issue
Block a user