-
Notifications
You must be signed in to change notification settings - Fork 726
EXT-1527 Provide the new setting RestoreDataS3ReadBatchSize and use it in test ImportBigEncryptedFileTest::ImportBigEncryptedFile to improve test running time #25547
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
base: main
Are you sure you want to change the base?
Conversation
🟢 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
a2e616c
to
81b78f7
Compare
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ ⚪ Ya make output | Test bloat | Test bloat
⚪ Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
optional uint64 InMemoryStateMigrationTimeoutMs = 24 [default = 1000]; | ||
optional uint32 StatsReportIntervalSeconds = 25 [default = 10]; | ||
optional uint32 BackupTableStatsReportIntervalSeconds = 26 [default = 30]; | ||
optional uint32 RestoreDataS3ReadBatchSize = 27 [default = 8388608]; // 8 MB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ydb/ydb/core/protos/s3_settings.proto
Line 45 in 9d32e6d
optional uint32 ReadBatchSize = 1 [default = 8388608]; // 8 MB |
Почему это не подходит?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А это нигде не настраивается. Это исключительно внутренняя настройка. Её нельзя например задать из API. Поэтому сделал, чтобы можно было дефолт менять из конфига. Можно пробросить и в API. В таком случае удобнее будет тестировать конечно, но я не уверен, что управления такими вещами юзером - хорошая идея
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Если я правильно понял, сейчас это нужно для тестов. В тестах это используется так:
ReadBatchSize: %d |
Changelog entry
...
Changelog category
Description for reviewers
The test ImportBigEncryptedFileTest::ImportBigEncryptedFile timeouts under ASAN because it is quite big. I made its size lower with the help of the new setting RestoreDataS3ReadBatchSize, which allows to setup read parts size during datashard restore.