8000 downgrade WARN messages to INFO level by jsteemann · Pull Request #9761 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

downgrade WARN messages to INFO level #9761

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

Merged
merged 3 commits into from
Aug 20, 2019
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
9 changes: 2 additions & 7 deletions arangod/Pregel/Conductor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,8 @@ void Conductor::cancel() {
void Conductor::cancelNoLock() {
_callbackMutex.assertLockedByCurrentThread();
_state = ExecutionState::CANCELED;
bool ok;
int res;
std::tie(ok, res) = basics::function_utils::retryUntilTimeout<int>(
[this]() -> std::pair<bool, int> {
int res = _finalizeWorkers();
return std::make_pair(res != TRI_ERROR_QUEUE_FULL, res);
},
bool ok = basics::function_utils::retryUntilTimeout(
[this]() -> bool { return (_finalizeWorkers() != TRI_ERROR_QUEUE_FULL); },
Logger::PREGEL, "cancel worker execution");
if (!ok) {
LOG_TOPIC("f8b3c", ERR, Logger::PREGEL)
Expand Down
9 changes: 6 additions & 3 deletions arangod/Replication/InitialSyncer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ void InitialSyncer::startRecurringBatchExtension() {
},
Logger::REPLICATION, "queue batch extension");
if (!queued) {
LOG_TOPIC("f8b3e", FATAL, Logger::REPLICATION)
<< "Failed to queue batch extension for 5 minutes, exiting.";
FATAL_ERROR_EXIT();
LOG_TOPIC("f8b3e", ERR, Logger::REPLICATION)
<< "Failed to queue replication batch extension for 5 minutes, exiting.";
// don't abort, as this is not a critical error
// if requeueing has failed here, the replication can still go on, but
// it _may_ fail later because the batch has expired on the leader.
// but there are still chances it can continue successfully
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Basics/FunctionUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bool retryUntilTimeout(std::function<bool()> fn, LogTopic& topic,
if (success) {
break;
}
LOG_TOPIC("18d0b", WARN, topic) << "Failed to " << message << ", waiting to retry...";
LOG_TOPIC("18d0b", INFO, topic) << "Failed to " << message << ", waiting to retry...";
std::this_thread::sleep_for(retryInterval);
}
return success;
Expand Down
4 changes: 2 additions & 2 deletions lib/Basics/FunctionUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ std::pair<bool, R> retryUntilTimeout(
std::chrono::nanoseconds timeout = std::chrono::minutes(5)) {
auto start = std::chrono::steady_clock::now();
bool success = false;
R value;
R value{};
while ((std::chrono::steady_clock::now() - start) < timeout) {
std::tie(success, value) = fn();
if (success) {
break;
}
LOG_TOPIC("18d0a", WARN, topic) << "Failed to " << message << ", waiting to retry...";
LOG_TOPIC("18d0a", INFO, topic) << "Failed to " << message << ", waiting to retry...";
std::this_thread::sleep_for(retryInterval);
}
return std::make_pair(success, value);
Expand Down
0