Improve debug message for debug mutations
This commit is contained in:
parent
e286f316b9
commit
33c4be9c42
|
@ -233,13 +233,13 @@ ACTOR static Future<Void> getAndComputeStagingKeys(
|
|||
int i = 0;
|
||||
for (auto& key : incompleteStagingKeys) {
|
||||
if (!fValues[i].get().present()) {
|
||||
TraceEvent(SevWarnAlways, "FastRestoreApplierGetAndComputeStagingKeysUnhandledError")
|
||||
TraceEvent(SevError, "FastRestoreApplierGetAndComputeStagingKeysUnhandledError")
|
||||
.detail("Key", key.first)
|
||||
.detail("Reason", "Not found in DB")
|
||||
.detail("PendingMutations", key.second->second.pendingMutations.size())
|
||||
.detail("StagingKeyType", (int)key.second->second.type);
|
||||
for (auto& vm : key.second->second.pendingMutations) {
|
||||
TraceEvent(SevWarnAlways, "FastRestoreApplierGetAndComputeStagingKeysUnhandledError")
|
||||
TraceEvent(SevError, "FastRestoreApplierGetAndComputeStagingKeysUnhandledError")
|
||||
.detail("PendingMutationVersion", vm.first.toString())
|
||||
.detail("PendingMutation", vm.second.toString());
|
||||
}
|
||||
|
|
|
@ -105,6 +105,8 @@ struct StagingKey {
|
|||
void precomputeResult() {
|
||||
TraceEvent(SevDebug, "FastRestoreApplierPrecomputeResult")
|
||||
.detail("Key", key)
|
||||
.detail("Value", val)
|
||||
.detail("MType", typeString[(int)type])
|
||||
.detail("Version", version.toString())
|
||||
.detail("LargestPendingVersion",
|
||||
(pendingMutations.empty() ? "[none]" : pendingMutations.rbegin()->first.toString()));
|
||||
|
|
|
@ -202,7 +202,7 @@ ACTOR static Future<Void> _parsePartitionedLogFileOnLoader(
|
|||
mutation.param2 = mutation.param2 < asset.range.end ? mutation.param2 : asset.range.end;
|
||||
}
|
||||
|
||||
TraceEvent(SevFRMutationInfo, "FastRestore_VerboseDebug")
|
||||
TraceEvent(SevFRMutationInfo, "FastRestoreDecodePartitionedLogFile")
|
||||
.detail("CommitVersion", msgVersion.toString())
|
||||
.detail("ParsedMutation", mutation.toString());
|
||||
it->second.push_back_deep(it->second.arena(), mutation);
|
||||
|
@ -721,7 +721,7 @@ void _parseSerializedMutation(std::map<LoadingParam, VersionedMutationsMap>::ite
|
|||
|
||||
cc->sampledLogBytes += mutation.totalSize();
|
||||
|
||||
TraceEvent(SevFRMutationInfo, "FastRestore_VerboseDebug")
|
||||
TraceEvent(SevFRMutationInfo, "FastRestoreDecodeLogFile")
|
||||
.detail("CommitVersion", commitVersion)
|
||||
.detail("ParsedMutation", mutation.toString());
|
||||
|
||||
|
@ -810,7 +810,7 @@ ACTOR static Future<Void> _parseRangeFileToMutationsOnLoader(
|
|||
|
||||
// We cache all kv operations into kvOps, and apply all kv operations later in one place
|
||||
auto it = kvOps.insert(std::make_pair(msgVersion, MutationsVec()));
|
||||
TraceEvent(SevFRMutationInfo, "FastRestore_VerboseDebug")
|
||||
TraceEvent(SevFRMutationInfo, "FastRestoreDecodeRangeFile")
|
||||
.detail("CommitVersion", version)
|
||||
.detail("ParsedMutationKV", m.toString());
|
||||
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
#include <cstdint>
|
||||
#include <cstdarg>
|
||||
|
||||
#define SevFRMutationInfo SevVerbose
|
||||
//#define SevFRMutationInfo SevInfo
|
||||
//#define SevFRMutationInfo SevVerbose
|
||||
#define SevFRMutationInfo SevInfo
|
||||
|
||||
using MutationsVec = Standalone<VectorRef<MutationRef>>;
|
||||
using SubSequenceVec = Standalone<VectorRef<uint32_t>>;
|
||||
|
|
|
@ -201,7 +201,7 @@ bool enableFailures = true;
|
|||
vector< Standalone<VectorRef<DebugEntryRef>> > debugEntries;
|
||||
int64_t totalDebugEntriesSize = 0;
|
||||
|
||||
#if CENABLED(0, NOT_IN_CLEAN)
|
||||
#if CENABLED(1, NOT_IN_CLEAN)
|
||||
StringRef debugKey = LiteralStringRef( "" );
|
||||
StringRef debugKey2 = LiteralStringRef( "\xff\xff\xff\xff" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue