aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client
diff options
context:
space:
mode:
authorermolovd <ermolovd@yandex-team.com>2024-11-23 10:59:09 +0300
committerermolovd <ermolovd@yandex-team.com>2024-11-23 11:10:09 +0300
commit8e841b73f8df78e6844dfe9350d0f0a6c98c30cb (patch)
tree1c85d665bb9b428d3c5136307bd64dd9187bd66d /yt/cpp/mapreduce/client
parente8c90ae8a977270555b84d2e098839ea75168ce9 (diff)
downloadydb-8e841b73f8df78e6844dfe9350d0f0a6c98c30cb.tar.gz
YT-23422: do not write command line into attributes of operations
* Changelog entry Type: feature Component: cpp-sdk C++ SDK doesn't write launching process command line to operation attributes. commit_hash:c50cbc2a31f5a3b733833767fe94019a0d7615d3
Diffstat (limited to 'yt/cpp/mapreduce/client')
-rw-r--r--yt/cpp/mapreduce/client/init.cpp4
-rw-r--r--yt/cpp/mapreduce/client/operation.cpp6
2 files changed, 3 insertions, 7 deletions
diff --git a/yt/cpp/mapreduce/client/init.cpp b/yt/cpp/mapreduce/client/init.cpp
index ea1f7a5561..3a68942cab 100644
--- a/yt/cpp/mapreduce/client/init.cpp
+++ b/yt/cpp/mapreduce/client/init.cpp
@@ -166,7 +166,7 @@ NLogging::ELogLevel ToCoreLogLevel(ILogger::ELevel level)
Y_ABORT();
}
-void CommonInitialize(int argc, const char** argv)
+void CommonInitialize(int, const char**)
{
auto logLevelStr = to_lower(TConfig::Get()->LogLevel);
ILogger::ELevel logLevel;
@@ -187,8 +187,6 @@ void CommonInitialize(int argc, const char** argv)
NLogging::TLogManager::Get()->Configure(coreLoggingConfig);
}
SetLogger(logger);
-
- TProcessState::Get()->SetCommandLine(argc, argv);
}
void NonJobInitialize(const TInitializeOptions& options)
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp
index c96c191bdd..824b36b206 100644
--- a/yt/cpp/mapreduce/client/operation.cpp
+++ b/yt/cpp/mapreduce/client/operation.cpp
@@ -804,10 +804,8 @@ void BuildCommonOperationPart(
startedBySpec["user"] = properties->UserName;
startedBySpec["wrapper_version"] = properties->ClientVersion;
- startedBySpec["command"] = TNode::CreateList();
- for (const auto& arg : properties->CensoredCommandLine) {
- startedBySpec["command"].Add(arg);
- }
+ startedBySpec["binary"] = properties->BinaryPath;
+ startedBySpec["binary_name"] = properties->BinaryName;
auto nirvanaBlockUrl = GetNirvanaBlockUrlFromContext();
if (!nirvanaBlockUrl.IsUndefined()) {
startedBySpec["nirvana_block_url"] = nirvanaBlockUrl;