Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): fix slow unit-test in compactor_test #3357

Merged
merged 5 commits into from
Jun 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/storage/src/hummock/compactor_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ mod tests {

// 1. add sstables
let key = Bytes::from(&b"same_key"[..]);
let val = Bytes::from(b"0"[..].repeat(4 << 20)); // 4MB value
let val = Bytes::from(b"0"[..].repeat(1 << 20)); // 1MB value
let kv_count = 128;
let mut epoch: u64 = 1;
for _ in 0..kv_count {
Expand Down Expand Up @@ -189,7 +189,7 @@ mod tests {
};

// 1. add sstables
let val = Bytes::from(b"0"[..].repeat(4 << 20)); // 4MB value
let val = Bytes::from(b"0"[..].repeat(1 << 10)); // 1024 Byte value

let keyspace = Keyspace::table_root(storage.clone(), &TableId::new(1));
let kv_count = 128;
Expand Down Expand Up @@ -270,7 +270,7 @@ mod tests {
};

// 1. add sstables
let val = Bytes::from(b"0"[..].repeat(4 << 20)); // 4MB value
let val = Bytes::from(b"0"[..].repeat(1 << 10)); // 1024 Byte value

let drop_table_id = 1;
let existing_table_ids = 2;
Expand Down