File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number
8000
th> Diff line change 1
1
devel
2
2
-----
3
3
4
+ * Lower log level to warning, when take over shard leadership finds
5
+ an agency Current entry is missing the server taking over.
6
+
4
7
* APM-112: invalid use of OPTIONS in AQL queries will now raise a warning in
5
8
the query.
6
9
The feature is useful to detect misspelled attribute names in OPTIONS, e.g.
@@ -255,8 +258,8 @@ devel
255
258
this way the system does only need to produce a path that is allowed to
256
259
be passed through.
257
260
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"
260
263
FILTER v.isRelevant == true
261
264
RETURN p
262
265
Original file line number Diff line number Diff line change @@ -317,9 +317,16 @@ void FollowerInfo::takeOverLeadership(std::vector<ServerID> const& previousInsyn
317
317
std::make_shared<std::vector<ServerID>>(previousInsyncFollowers);
318
318
auto myEntry =
319
319
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.
320
325
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. "
323
330
<< _docColl->vocbase ().name () << " /" << _docColl->name ()
324
331
<< " . our id: " << ourselves << " , failover candidates: "
325
332
<< *failoverCandidates << " , previous in-sync followers: "
You can’t perform that action at this time.
0 commit comments