-
Notifications
You must be signed in to change notification settings - Fork 638
Add EnableAlterSharding option #8707
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 EnableAlterSharding option #8707
Conversation
6530a1c
to
952b980
Compare
⚪ ⚪
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
952b980
to
dd324cf
Compare
dd324cf
to
1e75457
Compare
1e75457
to
81d0c28
Compare
81d0c28
to
f6226c0
Compare
f6226c0
to
ad74003
Compare
⚪
🟢
*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 |
@@ -265,6 +265,12 @@ class TAlterColumnTable: public TSubOperation { | |||
|
|||
auto result = MakeHolder<TProposeResponse>(NKikimrScheme::StatusAccepted, ui64(OperationId.GetTxId()), ui64(ssId)); | |||
|
|||
const bool isAlterSharding = Transaction.HasAlterColumnTable() && Transaction.GetAlterColumnTable().HasReshardColumnTable(); | |||
if (isAlterSharding && !AppData()->FeatureFlags.GetEnableAlterShardingInColumnShard()) { |
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.
Its ok to check flag like this: here and at that point in time.
There is a single caveat though: AppData()
is a global immutable object, and EnableAlterShardingInColumnShard
s value would not be affected by changes made through dynamic config updates.
Conflicts: ydb/core/kqp/ut/olap/blobs_sharing_ut.cpp ydb/core/protos/feature_flags.proto
Conflicts: ydb/core/kqp/ut/olap/blobs_sharing_ut.cpp ydb/core/protos/feature_flags.proto
Conflicts: ydb/core/protos/feature_flags.proto
Conflicts: ydb/core/protos/feature_flags.proto
Changelog entry
...
Changelog category
Additional information
...