Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Jan 4, 2024
1 parent 9cda68a commit 071715d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mito2/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use std::time::Duration;
use common_base::readable_size::ReadableSize;
use common_telemetry::warn;
use serde::{Deserialize, Serialize};
use serde_with::with_prefix;

/// Default max running background job.
const DEFAULT_MAX_BG_JOB: usize = 4;
Expand Down Expand Up @@ -79,7 +80,6 @@ pub struct MitoConfig {
/// Capacity of the channel to send data from parallel scan tasks to the main task (default 32).
pub parallel_scan_channel_size: usize,

#[serde(flatten)]
pub inverted_index: InvertedIndexConfig,
}

Expand Down
2 changes: 1 addition & 1 deletion src/mito2/src/engine/basic_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,5 +553,5 @@ async fn test_region_usage() {
assert_eq!(region_stat.sst_usage, 2742);

// region total usage
assert_eq!(region_stat.disk_usage(), 3748);
assert_eq!(region_stat.disk_usage(), 3780);
}
5 changes: 5 additions & 0 deletions tests-integration/tests/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,11 @@ page_cache_size = "512MiB"
sst_write_buffer_size = "8MiB"
parallel_scan_channel_size = 32
[datanode.region_engine.mito.inverted_index]
disable_creation_on_flush = false
disable_creation_on_compact = false
creation_memory_usage_threshold = "128MiB"
[[datanode.region_engine]]
[datanode.region_engine.file]
Expand Down

0 comments on commit 071715d

Please sign in to comment.