Skip to content

Commit

Permalink
fix(foyer): upgrade foyer to involve some bug fixes (#18693)
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Sep 25, 2024
1 parent e5498fb commit a7e60cb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
32 changes: 22 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ license = "Apache-2.0"
repository = "https://github.com/risingwavelabs/risingwave"

[workspace.dependencies]
foyer = { version = "0.11.3", features = ["mtrace", "nightly"] }
foyer = { version = "0.11.5", features = ["mtrace", "nightly"] }
apache-avro = { git = "https://github.com/risingwavelabs/avro", rev = "25113ba88234a9ae23296e981d8302c290fdaa4b", features = [
"snappy",
"zstandard",
Expand Down
4 changes: 2 additions & 2 deletions src/storage/src/store_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ impl StateStoreImpl {
.with_indexer_shards(opts.meta_file_cache_indexer_shards)
.with_flushers(opts.meta_file_cache_flushers)
.with_reclaimers(opts.meta_file_cache_reclaimers)
.with_buffer_threshold(opts.meta_file_cache_flush_buffer_threshold_mb * MB) // 128 MiB
.with_buffer_pool_size(opts.meta_file_cache_flush_buffer_threshold_mb * MB) // 128 MiB
.with_clean_region_threshold(
opts.meta_file_cache_reclaimers + opts.meta_file_cache_reclaimers / 2,
)
Expand Down Expand Up @@ -700,7 +700,7 @@ impl StateStoreImpl {
.with_indexer_shards(opts.data_file_cache_indexer_shards)
.with_flushers(opts.data_file_cache_flushers)
.with_reclaimers(opts.data_file_cache_reclaimers)
.with_buffer_threshold(opts.data_file_cache_flush_buffer_threshold_mb * MB) // 128 MiB
.with_buffer_pool_size(opts.data_file_cache_flush_buffer_threshold_mb * MB) // 128 MiB
.with_clean_region_threshold(
opts.data_file_cache_reclaimers + opts.data_file_cache_reclaimers / 2,
)
Expand Down

0 comments on commit a7e60cb

Please sign in to comment.