Graylog2 / Graylog2/graylog2-server

Check for MongoDB Replica Set state on startup

Open
#24,430 0 comments 1 reaction 0 assignees View on GitHub
feature triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

When the replica set is in recovery state, sometimes migrations hang because the updates in MongoDB don't finish. This is hard to spot from the startup logs (there is no message telling of this) but only because the migrations don't finish and we never see the "has started" message.

Maybe we should issue a warning on startup or find a way to exit with an error if there is a migration supposed to run that modifies MongoDB data? It is probably not an issue in most cases (although you don't want that state for the Replica Set) if it's just a regular startup of Graylog.

e.g. see https://community.graylog.org/t/cant-connect-to-web-interface-after-upgrade-to-6-0/36673/11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.