aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/retry_heavy_write_request.cpp
diff options
context:
space:
mode:
authormpereskokova <mpereskokova@yandex-team.com>2023-09-20 08:37:57 +0300
committermpereskokova <mpereskokova@yandex-team.com>2023-09-20 08:51:52 +0300
commitdd4ce1488ef6663aafaeb9f7f59f5ba860dc4624 (patch)
treefdb5e20760c6d5d1080d23fb303c394c575fbd6e /yt/cpp/mapreduce/client/retry_heavy_write_request.cpp
parent9dfead37c3b0ec561c8474a5fe5e27aa9a7605b0 (diff)
downloadydb-dd4ce1488ef6663aafaeb9f7f59f5ba860dc4624.tar.gz
YT-19885: Send impersonation in all requests when it exists
Diffstat (limited to 'yt/cpp/mapreduce/client/retry_heavy_write_request.cpp')
-rw-r--r--yt/cpp/mapreduce/client/retry_heavy_write_request.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/client/retry_heavy_write_request.cpp b/yt/cpp/mapreduce/client/retry_heavy_write_request.cpp
index b4e4975d7f..03a1bcfccf 100644
--- a/yt/cpp/mapreduce/client/retry_heavy_write_request.cpp
+++ b/yt/cpp/mapreduce/client/retry_heavy_write_request.cpp
@@ -37,6 +37,10 @@ void RetryHeavyWriteRequest(
header.SetToken(context.Token);
}
+ if (context.ImpersonationUser) {
+ header.SetImpersonationUser(*context.ImpersonationUser);
+ }
+
for (int attempt = 0; attempt < retryCount; ++attempt) {
TPingableTransaction attemptTx(clientRetryPolicy, context, parentId, transactionPinger->GetChildTxPinger(), TStartTransactionOptions());