Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion ydb/core/statistics/service/ut/ut_http_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ void ProbeTest(bool isServerless) {
TString columnName = "Value";
const auto sender = runtime.AllocateEdgeActor();

bool firstStatsToSA = false;
auto statsObserver1 = runtime.AddObserver<TEvStatistics::TEvSchemeShardStats>([&](auto& ev){
firstStatsToSA = true;
});
runtime.WaitFor("TEvSchemeShardStats 1", [&]{ return firstStatsToSA; });

bool secondStatsToSA = false;
auto statsObserver2 = runtime.AddObserver<TEvStatistics::TEvSchemeShardStats>([&](auto& ev){
secondStatsToSA = true;
});
runtime.WaitFor("TEvSchemeShardStats 2", [&]{ return secondStatsToSA; });

const auto operationId = TULIDGenerator().Next(TInstant::Now()).ToBinary();
auto analyzeRequest = MakeAnalyzeRequest({{tableInfo.PathId, {1, 2}}}, operationId);
runtime.SendToPipe(tableInfo.SaTabletId, sender, analyzeRequest.release());
Expand Down Expand Up @@ -96,4 +108,4 @@ Y_UNIT_TEST_SUITE(HttpRequest) {
}

} // NStat
} // NKikimr
} // NKikimr
5 changes: 2 additions & 3 deletions ydb/core/tx/schemeshard/olap/operations/create_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ class TCreateColumnTable: public TSubOperation {
olapStorePath.Base()->LastTxId = opTxId;
context.SS->PersistLastTxId(db, olapStorePath.Base());
} else {
NKikimrSchemeOp::TColumnStorageConfig storageConfig; // default
storageConfig.SetDataChannelCount(1);
tableInfo->StandaloneSharding = NKikimrSchemeOp::TColumnStoreSharding();
const NKikimrSchemeOp::TColumnStorageConfig& storageConfig = tableInfo->Description.GetStorageConfig();

TChannelsBindings channelsBindings;
if (!context.SS->GetOlapChannelsBindings(dstPath.GetPathIdForDomain(), storageConfig, channelsBindings, errStr)) {
Expand All @@ -800,7 +800,6 @@ class TCreateColumnTable: public TSubOperation {
TShardInfo columnShardInfo = TShardInfo::ColumnShardInfo(opTxId, pathId);
columnShardInfo.BindedChannels = channelsBindings;

tableInfo->StandaloneSharding = NKikimrSchemeOp::TColumnStoreSharding();
Y_ABORT_UNLESS(tableInfo->GetOwnedColumnShardsVerified().empty());

for (ui64 i = 0; i < shardsCount; ++i) {
Expand Down
Loading