-
Notifications
You must be signed in to change notification settings - Fork 702
add test to check metadata #17747
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
add test to check metadata #17747
Conversation
Hi! Thank you for contributing! |
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢 |
rename TConsumerOffset struct add PartitionIndex field to TConsumerOffset struct to substitude std::pair in OffsetCommit function
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
for (ui64 i = 0; i < minActivePartitions; ++i) { | ||
partitionsAndOffsets.emplace_back(std::make_pair(i, recordsCount)); | ||
partitionsAndOffsets.emplace_back(TConsumerOffset{i, static_cast<ui64>(recordsCount), commitedMetaData}); |
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.
Кажется, здесь происходит ненужная лишняя инициализация структуры TConsumerOffset. Можно в качестве аргумента emplace_back просто передать аргументы конструктора, чтобы вектор сам собрал объект в нужном месте в памяти.
partitionsAndOffsets.emplace_back(i, static_cast<ui64>(recordsCount), commitedMetaData);
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
Co-authored-by: Irina Skvortsova <[email protected]>
Co-authored-by: Irina Skvortsova <[email protected]>
Changelog entry
Add submission of metadata field in OffsetCommit() method.
Add check that metadata is not loaded from OffsetFetch() method.
Changelog category
Description for reviewers
...