Browse Source

pick up S3 provider limits in run actor

ref:01c9633dd091c3024f538ce5755c007e49ffc1d5
Sergey Uzhakov 2 years ago
parent
commit
f7c659130a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ydb/core/yq/libs/actors/run_actor.cpp

+ 4 - 0
ydb/core/yq/libs/actors/run_actor.cpp

@@ -1070,6 +1070,10 @@ private:
         LOG_D("Compiling query ...");
         NYql::TGatewaysConfig gatewaysConfig;
         SetupDqSettings(*gatewaysConfig.MutableDq()->MutableDefaultSettings());
+        // the main idea of having Params.GatewaysConfig is to copy clusters only
+        // but in this case we have to copy S3 provider limits
+        *gatewaysConfig.MutableS3() = Params.GatewaysConfig.GetS3();
+        gatewaysConfig.MutableS3()->ClearClusterMapping();
 
         THashMap<TString, TString> clusters;