From 0a98c7674708ca2ec1b08f24c1c0c8832121c011 Mon Sep 17 00:00:00 2001 From: Jingyu Zhou Date: Sat, 31 Jul 2021 12:24:59 -0700 Subject: [PATCH] Fix trace event throttling by using different types --- fdbbackup/FileDecoder.actor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fdbbackup/FileDecoder.actor.cpp b/fdbbackup/FileDecoder.actor.cpp index 697d600acc..a8d461639e 100644 --- a/fdbbackup/FileDecoder.actor.cpp +++ b/fdbbackup/FileDecoder.actor.cpp @@ -582,7 +582,9 @@ ACTOR Future decode_logs(DecodeParams params) { continue; } + int i = 0; for (const auto& m : vms.mutations) { + i++; // sub sequence number starts at 1 bool print = params.prefix.empty(); // no filtering if (!print) { @@ -596,7 +598,7 @@ ACTOR Future decode_logs(DecodeParams params) { } } if (print) { - TraceEvent("Mutation") + TraceEvent(format("Mutation_%d_%d", vms.version, i).c_str()) .detail("Version", vms.version) .setMaxFieldLength(10000) .detail("M", m.toString()); @@ -652,7 +654,7 @@ int main(int argc, char** argv) { setupNetwork(0, UseMetrics::True); TraceEvent::setNetworkThread(); - openTraceFile(NetworkAddress(), 10 << 20, 10 << 20, param.log_dir, "decode", param.trace_log_group); + openTraceFile(NetworkAddress(), 10 << 20, 500 << 20, param.log_dir, "decode", param.trace_log_group); param.tlsConfig.setupBlobCredentials(); auto f = stopAfter(decode_logs(param));