8000 lower takeover leadership current log level (#14379) · arangodb/arangodb@430f624 · GitHub
[go: up one dir, main page]

Skip to content

Commit 430f624

Browse files
kvahedjsteemann
andauthored
lower takeover leadership current log level (#14379)
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
1 parent d894cce commit 430f624

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

CHANGELOG

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
devel
22
-----
33

4+
* Lower log level to warning, when take over shard leadership finds
5+
an agency Current entry is missing the server taking over.
6+
47
* APM-112: invalid use of OPTIONS in AQL queries will now raise a warning in
58
the query.
69
The feature is useful to detect misspelled attribute names in OPTIONS, e.g.
@@ -255,8 +258,8 @@ devel
255258
this way the system does only need to produce a path that is allowed to
256259
be passed through.
257260
e.g.
258-
259-
FOR v,e,p IN 10 OUTBOUND @start GRAPH "myGraph"
261+
262+
FOR v,e,p IN 10 OUTBOUND @start GRAPH "myGraph"
260263
FILTER v.isRelevant == true
261264
RETURN p
262265

arangod/Cluster/FollowerInfo.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,16 @@ void FollowerInfo::takeOverLeadership(std::vector<ServerID> const& previousInsyn
317317
std::make_shared<std::vector<ServerID>>(previousInsyncFollowers);
318318
auto myEntry =
319319
std::find(failoverCandidates->begin(), failoverCandidates->end(), ourselves);
320+
321+
// We expect of course to be one of the fail over candidates. However, if the creation
322+
// of the TakeOverLeadership job and it's start leading here are timewise apart, chances
323+
// are that Current has been changed in the meantime. The assertion should remain here
324+
// to detect any errors during CI.
320325
if (myEntry == failoverCandidates->end()) {
321-
LOG_TOPIC("c9422", ERR, Logger::CLUSTER)
322-
<< "invalid failover candidates for FollowerInfo of shard "
326+
LOG_TOPIC("c9422", WARN, Logger::CLUSTER)
327+
<< "invalid failover candidates for FollowerInfo of shard - "
328+
<< "can happen, when scheduling and starting the leadership "
329+
<< "takeover are timewise apart, so that the Current entry has expired. "
323330
<< _docColl->vocbase().name() << "/" << _docColl->name()
324331
<< ". our id: " << ourselves << ", failover candidates: "
325332
<< *failoverCandidates << ", previous in-sync followers: "

0 commit comments

Comments
 (0)
0