diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-10 00:01:24 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-10 00:10:50 +0300 |
commit | 3a7cb5704aaa719d28e5da9f48a751725b5e26b5 (patch) | |
tree | 524386903aa13ffe7ac77a9c38523d0204ed3bea | |
parent | 21a2abe3d3c0aa3ab3598b3fd9ae7d696466863b (diff) | |
download | ydb-3a7cb5704aaa719d28e5da9f48a751725b5e26b5.tar.gz |
Intermediate changes
-rw-r--r-- | contrib/python/cffi/py2/gen/lib/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/cffi/py2/gen/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/cffi/py3/gen/lib/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/cffi/py3/gen/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/ipython/py3/bin/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/matplotlib/py3/extern/agg24-svn/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/matplotlib/py3/extern/ttconv/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/moto/bin/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/mypy-protobuf/bin/protoc-gen-mypy/bin/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/mypy-protobuf/bin/protoc-gen-mypy_grpc/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/pythran/bin/pythran/ya.make | 2 | ||||
-rw-r--r-- | yt/yt/client/cache/cache.cpp | 4 | ||||
-rw-r--r-- | yt/yt/client/cache/config.cpp | 4 | ||||
-rw-r--r-- | yt/yt/client/cache/unittests/cache_ut.cpp | 1 |
14 files changed, 29 insertions, 2 deletions
diff --git a/contrib/python/cffi/py2/gen/lib/ya.make b/contrib/python/cffi/py2/gen/lib/ya.make index 64e54a67c3..028ee2786a 100644 --- a/contrib/python/cffi/py2/gen/lib/ya.make +++ b/contrib/python/cffi/py2/gen/lib/ya.make @@ -1,5 +1,7 @@ PY2_LIBRARY() +VERSION(Service-proxy-version) + LICENSE(MIT) PEERDIR( diff --git a/contrib/python/cffi/py2/gen/ya.make b/contrib/python/cffi/py2/gen/ya.make index 3a78fd7359..0a34bec5f6 100644 --- a/contrib/python/cffi/py2/gen/ya.make +++ b/contrib/python/cffi/py2/gen/ya.make @@ -2,6 +2,8 @@ PY2_PROGRAM(cffigen) DISABLE(PYTHON_SQLITE3) +VERSION(Service-proxy-version) + LICENSE(MIT) PEERDIR( diff --git a/contrib/python/cffi/py3/gen/lib/ya.make b/contrib/python/cffi/py3/gen/lib/ya.make index 6f0f769112..f9ac8afbac 100644 --- a/contrib/python/cffi/py3/gen/lib/ya.make +++ b/contrib/python/cffi/py3/gen/lib/ya.make @@ -1,5 +1,7 @@ PY3_LIBRARY() +VERSION(Service-proxy-version) + LICENSE(MIT) PEERDIR( diff --git a/contrib/python/cffi/py3/gen/ya.make b/contrib/python/cffi/py3/gen/ya.make index 639c42fd51..745f96d7f4 100644 --- a/contrib/python/cffi/py3/gen/ya.make +++ b/contrib/python/cffi/py3/gen/ya.make @@ -2,6 +2,8 @@ PY3_PROGRAM(cffigen) DISABLE(PYTHON_SQLITE3) +VERSION(Service-proxy-version) + LICENSE(MIT) PEERDIR( diff --git a/contrib/python/ipython/py3/bin/ya.make b/contrib/python/ipython/py3/bin/ya.make index 40cc790c2d..1d46b6a8dd 100644 --- a/contrib/python/ipython/py3/bin/ya.make +++ b/contrib/python/ipython/py3/bin/ya.make @@ -1,5 +1,7 @@ PY3_PROGRAM(ipython) +VERSION(Service-proxy-version) + LICENSE(BSD-3-Clause) PEERDIR( diff --git a/contrib/python/matplotlib/py3/extern/agg24-svn/ya.make b/contrib/python/matplotlib/py3/extern/agg24-svn/ya.make index ffa529dcb0..6dd0f2d6f0 100644 --- a/contrib/python/matplotlib/py3/extern/agg24-svn/ya.make +++ b/contrib/python/matplotlib/py3/extern/agg24-svn/ya.make @@ -1,5 +1,7 @@ LIBRARY() +VERSION(Service-proxy-version) + LICENSE(PSF-2.0) ADDINCL( diff --git a/contrib/python/matplotlib/py3/extern/ttconv/ya.make b/contrib/python/matplotlib/py3/extern/ttconv/ya.make index bd5fca39b2..f877dfcbd2 100644 --- a/contrib/python/matplotlib/py3/extern/ttconv/ya.make +++ b/contrib/python/matplotlib/py3/extern/ttconv/ya.make @@ -1,5 +1,7 @@ PY23_LIBRARY() +VERSION(Service-proxy-version) + LICENSE(PSF-2.0) NO_COMPILER_WARNINGS() diff --git a/contrib/python/moto/bin/ya.make b/contrib/python/moto/bin/ya.make index 2073e02863..db07d32c7f 100644 --- a/contrib/python/moto/bin/ya.make +++ b/contrib/python/moto/bin/ya.make @@ -1,5 +1,7 @@ PY3_PROGRAM(moto_server) +VERSION(Service-proxy-version) + LICENSE(Apache-2.0) PEERDIR( diff --git a/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/bin/ya.make b/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/bin/ya.make index 82ab0461d0..c1646a5a90 100644 --- a/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/bin/ya.make +++ b/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/bin/ya.make @@ -1,5 +1,7 @@ PY3_PROGRAM_BIN(protoc-gen-mypy) +VERSION(Service-proxy-version) + LICENSE(Apache-2.0) PEERDIR( diff --git a/contrib/python/mypy-protobuf/bin/protoc-gen-mypy_grpc/ya.make b/contrib/python/mypy-protobuf/bin/protoc-gen-mypy_grpc/ya.make index 52f791b734..bf57229bd9 100644 --- a/contrib/python/mypy-protobuf/bin/protoc-gen-mypy_grpc/ya.make +++ b/contrib/python/mypy-protobuf/bin/protoc-gen-mypy_grpc/ya.make @@ -1,5 +1,7 @@ PY3_PROGRAM(protoc-gen-mypy_grpc) +VERSION(Service-proxy-version) + LICENSE(Apache-2.0) PEERDIR( diff --git a/contrib/python/pythran/bin/pythran/ya.make b/contrib/python/pythran/bin/pythran/ya.make index 3a5a740221..7a4a0b9fd6 100644 --- a/contrib/python/pythran/bin/pythran/ya.make +++ b/contrib/python/pythran/bin/pythran/ya.make @@ -1,5 +1,7 @@ PY3_PROGRAM(pythran) +VERSION(Service-proxy-version) + LICENSE(BSD-3-Clause) PEERDIR( diff --git a/yt/yt/client/cache/cache.cpp b/yt/yt/client/cache/cache.cpp index 8e830ee9b0..a866a16baa 100644 --- a/yt/yt/client/cache/cache.cpp +++ b/yt/yt/client/cache/cache.cpp @@ -26,6 +26,7 @@ TStringBuf GetNormalClusterName(TStringBuf clusterName) // TODO(ignat): move this logic to ads/bsyeti/libs/ytex/client/ TClientsCacheConfigPtr GetClustersConfigWithNormalClusterName(const TClientsCacheConfigPtr& config) { + YT_VERIFY(config); auto newConfig = New<TClientsCacheConfig>(); newConfig->DefaultConfig = CloneYsonStruct(config->DefaultConfig, /*postprocess*/ false, /*setDefaults*/ false); @@ -49,7 +50,7 @@ TConnectionConfigPtr MakeClusterConfig( const bool useDefaultConfig = (it == clustersConfig->ClusterConfigs.end()); const auto& config = useDefaultConfig ? clustersConfig->DefaultConfig : it->second; - auto newConfig = CloneYsonStruct(config, /*postprocess*/ false, /*setDefaults*/ false); + auto newConfig = config ? CloneYsonStruct(config, /*postprocess*/ false, /*setDefaults*/ false) : New<NApi::NRpcProxy::TConnectionConfig>(); // Ignore cluster url from DefaultConfig, but use it from ClusterConfigs[_] if it is set. if (useDefaultConfig || !newConfig->ClusterUrl.has_value() || newConfig->ClusterUrl->empty()) { newConfig->ClusterUrl = ToString(cluster); @@ -58,6 +59,7 @@ TConnectionConfigPtr MakeClusterConfig( if (!proxyRole.empty()) { newConfig->ProxyRole = ToString(proxyRole); } + newConfig->Postprocess(); return newConfig; } diff --git a/yt/yt/client/cache/config.cpp b/yt/yt/client/cache/config.cpp index 7ebaeed178..f501f38cb4 100644 --- a/yt/yt/client/cache/config.cpp +++ b/yt/yt/client/cache/config.cpp @@ -10,8 +10,10 @@ using namespace NApi; void TClientsCacheConfig::Register(TRegistrar registrar) { + // TODO(shishmak): Need to handle default config properly. + // Now it fails postprocess validation when set to default, so it made optional. registrar.Parameter("default_config", &TThis::DefaultConfig) - .DefaultNew(); + .Optional(); registrar.Parameter("cluster_configs", &TThis::ClusterConfigs) .Default(); } diff --git a/yt/yt/client/cache/unittests/cache_ut.cpp b/yt/yt/client/cache/unittests/cache_ut.cpp index 0759d8e636..34f200befe 100644 --- a/yt/yt/client/cache/unittests/cache_ut.cpp +++ b/yt/yt/client/cache/unittests/cache_ut.cpp @@ -93,6 +93,7 @@ TEST(TClientsCacheTest, MultiThreads) TEST(TClientsCacheTest, MakeClusterConfig) { auto clientsCacheConfig = New<TClientsCacheConfig>(); + clientsCacheConfig->DefaultConfig = New<NApi::NRpcProxy::TConnectionConfig>(); clientsCacheConfig->DefaultConfig->ClusterUrl = "seneca-nan"; // will be ignored clientsCacheConfig->DefaultConfig->ProxyRole = "default_role"; // can be overwritten clientsCacheConfig->DefaultConfig->DynamicChannelPool->MaxPeerCount = 42; |