We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faffb90 commit fca5d5cCopy full SHA for fca5d5c
ydb/services/lib/actors/pq_schema_actor.cpp
@@ -764,9 +764,11 @@ namespace NKikimr::NGRpcProxy::V1 {
764
}
765
766
if (settings.has_partitions_count()) {
767
- if (settings.partitions_count() > 0) {
768
- minParts = settings.partitions_count();
+ if (settings.partitions_count() <= 0) {
+ error = TStringBuilder() << "Partitions count must be positive, provided " << settings.partitions_count();
769
+ return Ydb::StatusIds::BAD_REQUEST;
770
771
+ minParts = settings.partitions_count();
772
} else if (settings.has_autoscaling_settings()) {
773
const auto& autoScalteSettings = settings.autoscaling_settings();
774
if (autoScalteSettings.min_active_partitions() > 0) {
0 commit comments