Skip to content

Commit

Permalink
add UT for commit buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohehuhu committed Nov 28, 2024
1 parent dab1959 commit d73a894
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,16 @@ class CelebornConfSuite extends CelebornFunSuite {
conf.set("celeborn.storage.availableTypes", "SSD,HDD")
assert(conf.workerCommitThreads === 32)

conf.set("celeborn.storage.availableTypes", "HDFS")
conf.set("celeborn.storage.availableTypes", "S3")
conf.set("celeborn.storage.s3.dir", "s3a:///xxx")
assert(conf.workerCommitThreads === 128)
assert(conf.workerCommitThreads === 32)
}

test("Test commit buffer size") {
val conf = new CelebornConf()
conf.set("celeborn.storage.availableTypes", "S3")
conf.set("celeborn.storage.s3.dir", "s3a:///xxx")
assert(conf.workerS3FlusherBufferSize === 6291456)
}

test("Test available storage types") {
Expand Down

0 comments on commit d73a894

Please sign in to comment.