Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert downgrading of log error->warn->error #4511

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions src/historywork/CheckSingleLedgerHeaderWork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "history/HistoryArchive.h"
#include "history/HistoryManager.h"
#include "historywork/GetAndUnzipRemoteFileWork.h"
#include "main/ErrorMessages.h"
#include "util/GlobalChecks.h"
#include "util/Logging.h"
#include "util/TmpDir.h"
Expand Down Expand Up @@ -84,9 +85,16 @@ CheckSingleLedgerHeaderWork::doWork()
}
else if (mGetLedgerFileWork->getState() != State::WORK_SUCCESS)
{
CLOG_WARNING(History,
"Failed to download ledger checkpoint {} from archive {}",
mFt->baseName_gz(), mArchive->getName());
CLOG_ERROR(
History,
"Failed to download ledger checkpoint {} from archive {}: {}",
mFt->baseName_gz(), mArchive->getName(),
POSSIBLY_CORRUPTED_HISTORY);
CLOG_ERROR(
History,
"If this occurs often, consider notifying the archive "
"owner. As long as your configuration has any valid history "
"archives, this error does NOT mean your node is unhealthy.");
return mGetLedgerFileWork->getState();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/ErrorMessages.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ constexpr auto const REPORT_INTERNAL_BUG =
"Please report this bug along with this log file if this was not expected";
constexpr auto const POSSIBLY_CORRUPTED_HISTORY =
"One or more of history archives may be corrupted. Update HISTORY "
"configuration entry to only contain valid ones";
"configuration entry to only contain valid ones.";
constexpr auto const POSSIBLY_CORRUPTED_LOCAL_FS =
"There may be a problem with the local filesystem. Ensure that there is "
"enough space to perform that operation and that disc is behaving "
Expand Down
Loading