Graylog2 / Graylog2/graylog-helm
MongoDB reports duplicate "cluster-leader" key
- Dominant language
- Go Template
- Stars
- 12
- Forks
- 3
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 13
Description
Getting a warning level message only on the `graylog-mongo-0` (primary in replicaset) pod after a fresh install:
```
│ mongodb {"t":{"$date":"2025-08-22T15:16:13.870+00:00"},"s":"W", "c":"WRITE", "id":7267501, "ctx":"conn259","msg":"Plan executor error during findAndModify","attr │
│ ":{"error":{"code":11000,"codeName":"DuplicateKey","errmsg":"E11000 duplicate key error collection: graylog.cluster_locks index: resource_1 dup key: { resource: \"cl │
│ uster-leader\" }","keyPattern":{"resource":1},"keyValue":{"resource":"cluster-leader"}},"stats":{"stage":"UPDATE","nReturned":0,"executionTimeMillisEstimate":0,"work │
│ s":2,"advanced":0,"needTime":1,"needYield":0,"saveState":0,"restoreState":0,"failed":true,"isEOF":1,"nMatched":0,"nWouldModify":0,"nWouldUpsert":1,"inputStage":{"sta │
│ ge":"FETCH","filter":{"locked_by":{"$eq":"179dd281-b0cc-485e-baf6-fd45b54dbd19"}},"nReturned":0,"executionTimeMillisEstimate":0,"works":2,"advanced":0,"needTime":1," │
│ needYield":0,"saveState":0,"restoreState":0,"isEOF":1,"docsExamined":1,"alreadyHasObj":0,"inputStage":{"stage":"IXSCAN","nReturned":1,"executionTimeMillisEstimate":0 │
│ ,"works":2,"advanced":1,"needTime":0,"needYield":0,"saveState":0,"restoreState":0,"isEOF":1,"keyPattern":{"resource":1},"indexName":"resource_1","isMultiKey":false," │
│ multiKeyPaths":{"resource":[]},"isUnique":true,"isSparse":false,"isPartial":false,"indexVersion":2,"direction":"forward","indexBounds":{"resource":["[\"cluster-leade │
│ r\", \"cluster-leader\"]"]},"keysExamined":1,"seeks":1,"dupsTested":0,"dupsDropped":0}}}}}
```
Everything in the Graylog UI still seems to function properly however, and the other mongo pods don't have this error.
Contributor guide
Assessment
This issue has not been assessed yet.