Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-1146: make ut_cache stress test use less iterations while being executed under tsan/ubsan/asan alike other ut tests #2499

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
Loading