temporarily make ancient append vecs 10x smaller to find intermittent bugs (#26574)

This commit is contained in:
Jeff Washington (jwash) 2022-07-19 08:51:36 -05:00 committed by GitHub
parent f0994c4ba1
commit 6efe7e095b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,8 @@ pub fn get_ancient_append_vec_capacity() -> u64 {
use crate::append_vec::MAXIMUM_APPEND_VEC_FILE_SIZE;
// smaller than max by a bit just in case
// some functions add slop on allocation
MAXIMUM_APPEND_VEC_FILE_SIZE - 2048
// temporarily smaller to force ancient append vec operations to occur more often to flush out any bugs
MAXIMUM_APPEND_VEC_FILE_SIZE / 10 - 2048
}
/// true iff storage is ancient size and is almost completely full
@ -202,7 +203,7 @@ pub mod tests {
fn test_get_ancient_append_vec_capacity() {
assert_eq!(
get_ancient_append_vec_capacity(),
crate::append_vec::MAXIMUM_APPEND_VEC_FILE_SIZE - 2048
crate::append_vec::MAXIMUM_APPEND_VEC_FILE_SIZE / 10 - 2048
);
}