forked from tikv/tikv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: speed up tests with batch put and mem disk (tikv#11249)
* tests: speed up tests with batch put and mem disk Ref tikv#5637. Signed-off-by: Jay Lee <[email protected]> * detect memory disk There are many heavy write in raftstore tests, I have seen some write IO task takes several seconds to finished, which will certainly make most test cases timeout. This PR utilizes memory disk to speed up those operations. Ref tikv#11177 Signed-off-by: Jay Lee <[email protected]> * also put snapshot in mem Signed-off-by: Jay Lee <[email protected]> * wait a little longer Signed-off-by: Jay Lee <[email protected]> * fix inspected IO on mem disk Signed-off-by: Jay Lee <[email protected]> * fix build Signed-off-by: Jay Lee <[email protected]> * fix regression brought by pessimistic pipeline Signed-off-by: Jay Lee <[email protected]> * fix regression from pre-transfer-leader Signed-off-by: Jay Lee <[email protected]> * introduce test config Signed-off-by: Jay Lee <[email protected]> * clean up and wait more on test_merge_cascade_merge_isolated Signed-off-by: Jay Lee <[email protected]> * fix panic in encryption Signed-off-by: Jay Lee <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
- Loading branch information
1 parent
2060fd4
commit cfc1cd9
Showing
21 changed files
with
126 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,7 @@ fuzz-incremental/ | |
/last_tikv.toml | ||
/raft/ | ||
core.* | ||
*.info | ||
|
||
# Ignore all logs | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2021 TiKV Project Authors. Licensed under Apache-2.0. | ||
|
||
use std::ops::{Deref, DerefMut}; | ||
use tikv::config::TiKvConfig; | ||
|
||
#[derive(Clone)] | ||
pub struct Config { | ||
pub tikv: TiKvConfig, | ||
pub prefer_mem: bool, | ||
} | ||
|
||
impl Deref for Config { | ||
type Target = TiKvConfig; | ||
#[inline] | ||
fn deref(&self) -> &TiKvConfig { | ||
&self.tikv | ||
} | ||
} | ||
|
||
impl DerefMut for Config { | ||
#[inline] | ||
fn deref_mut(&mut self) -> &mut TiKvConfig { | ||
&mut self.tikv | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.