-
Notifications
You must be signed in to change notification settings - Fork 740
Forbid creating empty tiering rules in column shards #8154
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
Forbid creating empty tiering rules in column shards #8154
Conversation
swalrus1
commented
Aug 22, 2024
- refactor TTiering
- don't crash when tiering rules are empty
- fail when parsing empty tiering rules
|
⚪ ⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
ydb/core/tx/tiering/manager.cpp
Outdated
| for (auto&& i : PathIdTiering) { | ||
| auto* tiering = snapshotPtr->GetTieringById(i.second); | ||
| if (tiering) { | ||
| auto* tiering_rule = snapshotPtr->GetTieringById(i.second); |
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.
style guide
| [[nodiscard]] bool Add(const std::shared_ptr<TTierInfo>& tier) { | ||
| AFL_VERIFY(tier); | ||
| if (!TTLColumnName) { | ||
| TTLColumnName = tier->GetEvictColumnName(); |
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/core/tx/tiering/manager.cpp
Outdated
| tier->SetSerializer(NTiers::ConvertCompression(it->second.GetCompression())); | ||
| } | ||
| NOlap::TTiering tiering = tiering_rule->BuildOlapTiers(); | ||
| AFL_VERIFY(tiering.HasTiers()); |
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.
а нельзя проверку в BuildOlapTiers перенести?
|
⚪ 🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |