Skip to content

Commit

Permalink
YDB Import 480
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-ydb-importer committed Dec 6, 2023
1 parent 21eeaa5 commit e3cbe12
Show file tree
Hide file tree
Showing 151 changed files with 3,579 additions and 3,719 deletions.
5 changes: 5 additions & 0 deletions .mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -6001,6 +6001,11 @@
"contrib/ydb/library/yql/utils/log/proto/CMakeLists.linux-x86_64.txt":"",
"contrib/ydb/library/yql/utils/log/proto/CMakeLists.txt":"",
"contrib/ydb/library/yql/utils/log/proto/CMakeLists.windows-x86_64.txt":"",
"contrib/ydb/library/yql/utils/plan/CMakeLists.darwin-x86_64.txt":"",
"contrib/ydb/library/yql/utils/plan/CMakeLists.linux-aarch64.txt":"",
"contrib/ydb/library/yql/utils/plan/CMakeLists.linux-x86_64.txt":"",
"contrib/ydb/library/yql/utils/plan/CMakeLists.txt":"",
"contrib/ydb/library/yql/utils/plan/CMakeLists.windows-x86_64.txt":"",
"contrib/ydb/library/yql/utils/threading/CMakeLists.darwin-x86_64.txt":"",
"contrib/ydb/library/yql/utils/threading/CMakeLists.linux-aarch64.txt":"",
"contrib/ydb/library/yql/utils/threading/CMakeLists.linux-x86_64.txt":"",
Expand Down
2 changes: 2 additions & 0 deletions contrib/ydb/core/base/appdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ TAppData::TAppData(
, DomainsConfigPtr(new NKikimrConfig::TDomainsConfig())
, BootstrapConfigPtr(new NKikimrConfig::TBootstrap())
, AwsCompatibilityConfigPtr(new NKikimrConfig::TAwsCompatibilityConfig())
, S3ProxyResolverConfigPtr(new NKikimrConfig::TS3ProxyResolverConfig())
, StreamingConfig(*StreamingConfigPtr.get())
, PQConfig(*PQConfigPtr.get())
, PQClusterDiscoveryConfig(*PQClusterDiscoveryConfigPtr.get())
Expand All @@ -94,6 +95,7 @@ TAppData::TAppData(
, DomainsConfig(*DomainsConfigPtr.get())
, BootstrapConfig(*BootstrapConfigPtr.get())
, AwsCompatibilityConfig(*AwsCompatibilityConfigPtr.get())
, S3ProxyResolverConfig(*S3ProxyResolverConfigPtr.get())
, KikimrShouldContinue(kikimrShouldContinue)

{}
Expand Down
3 changes: 3 additions & 0 deletions contrib/ydb/core/base/appdata_fwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace NKikimrConfig {
class TDomainsConfig;
class TBootstrap;
class TAwsCompatibilityConfig;
class TS3ProxyResolverConfig;
}

namespace NKikimrNetClassifier {
Expand Down Expand Up @@ -201,6 +202,7 @@ struct TAppData {
std::unique_ptr<NKikimrConfig::TDomainsConfig> DomainsConfigPtr;
std::unique_ptr<NKikimrConfig::TBootstrap> BootstrapConfigPtr;
std::unique_ptr<NKikimrConfig::TAwsCompatibilityConfig> AwsCompatibilityConfigPtr;
std::unique_ptr<NKikimrConfig::TS3ProxyResolverConfig> S3ProxyResolverConfigPtr;
std::unique_ptr<NKikimrSharedCache::TSharedCacheConfig> SharedCacheConfigPtr;

NKikimrStream::TStreamingConfig& StreamingConfig;
Expand All @@ -223,6 +225,7 @@ struct TAppData {
NKikimrConfig::TDomainsConfig& DomainsConfig;
NKikimrConfig::TBootstrap& BootstrapConfig;
NKikimrConfig::TAwsCompatibilityConfig& AwsCompatibilityConfig;
NKikimrConfig::TS3ProxyResolverConfig& S3ProxyResolverConfig;
bool EnforceUserTokenRequirement = false;
bool AllowHugeKeyValueDeletes = true; // delete when all clients limit deletes per request
bool EnableKqpSpilling = false;
Expand Down
12 changes: 12 additions & 0 deletions contrib/ydb/core/cms/cluster_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,18 @@ ui64 TClusterInfo::AddExternalLocks(const TNotificationInfo &notification, const
return locks;
}

void TClusterInfo::SetHostMarkers(const TString &hostName, const THashSet<NKikimrCms::EMarker> &markers) {
for (auto node : NodePtrs(hostName)) {
node->Markers.insert(markers.begin(), markers.end());
}
}

void TClusterInfo::ResetHostMarkers(const TString &hostName) {
for (auto node : NodePtrs(hostName)) {
node->Markers.clear();
}
}

void TClusterInfo::ApplyDowntimes(const TDowntimes &downtimes)
{
for (auto &pr : downtimes.NodeDowntimes) {
Expand Down
4 changes: 4 additions & 0 deletions contrib/ydb/core/cms/cluster_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ class TLockableItem : public TThrRefBase {
std::list<TScheduledLock> ScheduledLocks;
TVector<TTemporaryLock> TempLocks;
ui64 DeactivatedLocksOrder = Max<ui64>();
THashSet<NKikimrCms::EMarker> Markers;
};

using TLockableItemPtr = TIntrusivePtr<TLockableItem>;
Expand Down Expand Up @@ -902,6 +903,9 @@ class TClusterInfo : public TThrRefBase {

ui64 AddExternalLocks(const TNotificationInfo &notification, const TActorContext *ctx);

void SetHostMarkers(const TString &hostName, const THashSet<NKikimrCms::EMarker> &markers);
void ResetHostMarkers(const TString &hostName);

void ApplyDowntimes(const TDowntimes &downtimes);
void UpdateDowntimes(TDowntimes &downtimes, const TActorContext &ctx);

Expand Down
Loading

0 comments on commit e3cbe12

Please sign in to comment.