diff --git a/fdbclient/BackupAgent.actor.h b/fdbclient/BackupAgent.actor.h index ed8279a492..642a2e5b8d 100644 --- a/fdbclient/BackupAgent.actor.h +++ b/fdbclient/BackupAgent.actor.h @@ -883,8 +883,7 @@ public: } TraceEvent t(SevWarn, "FileBackupError"); t.error(e).detail("BackupUID", uid).detail("Description", details).detail("TaskInstance", (uint64_t)taskInstance); - // These should not happen - ASSERT(e.code() != error_code_key_not_found); + // key_not_found could happen if(e.code() == error_code_key_not_found) t.backtrace(); diff --git a/fdbclient/FileBackupAgent.actor.cpp b/fdbclient/FileBackupAgent.actor.cpp index c4f4d54313..1b615e2d92 100644 --- a/fdbclient/FileBackupAgent.actor.cpp +++ b/fdbclient/FileBackupAgent.actor.cpp @@ -235,8 +235,7 @@ public: } TraceEvent t(SevWarn, "FileRestoreError"); t.error(e).detail("RestoreUID", uid).detail("Description", details).detail("TaskInstance", (uint64_t)taskInstance); - // These should not happen - ASSERT(e.code() != error_code_key_not_found); + // key_not_found could happen if(e.code() == error_code_key_not_found) t.backtrace(); diff --git a/fdbserver/RestoreCommon.actor.cpp b/fdbserver/RestoreCommon.actor.cpp index e8bb995964..0f23ea20c4 100644 --- a/fdbserver/RestoreCommon.actor.cpp +++ b/fdbserver/RestoreCommon.actor.cpp @@ -122,8 +122,7 @@ Future RestoreConfigFR::logError(Database cx, Error e, std::string const& } TraceEvent t(SevWarn, "FileRestoreError"); t.error(e).detail("RestoreUID", uid).detail("Description", details).detail("TaskInstance", (uint64_t)taskInstance); - // These should not happen - ASSERT(e.code() != error_code_key_not_found); + // key_not_found could happen if (e.code() == error_code_key_not_found) t.backtrace(); return updateErrorInfo(cx, e, details);