Skip to content

Commit

Permalink
issue-1146: make ut_cache stress test use less iterations while being…
Browse files Browse the repository at this point in the history
… executed under tsan/ubsan/asan alike other ut tests (#2499)
  • Loading branch information
debnatkh authored Nov 14, 2024
1 parent cb26896 commit 98d2c20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ class TRequestGenerator
TVector<TString> RunRandomIndexLoad()
{
TVector<TString> responses;
const size_t numRequests = 5000;

const auto sanitizerType = GetEnv("SANITIZER_TYPE");
STORAGE_INFO("Sanitizer: %s", sanitizerType.c_str());
const THashSet<TString> slowSanitizers({"thread", "undefined", "address"});
const ui32 d = slowSanitizers.contains(sanitizerType) ? 20 : 1;

const size_t numRequests = 5000 / d;

while (responses.size() < numRequests) {
auto operation = GetRandomOperation();
Expand Down
2 changes: 2 additions & 0 deletions cloud/filestore/libs/storage/tablet/ut_cache_stress/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ PEERDIR(
cloud/filestore/libs/storage/testlib
)

ENV(SANITIZER_TYPE=${SANITIZER_TYPE})

YQL_LAST_ABI_VERSION()

END()

0 comments on commit 98d2c20

Please sign in to comment.