Fix WriteAheadLog DB health check for placeholder user record reassignment
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
With :reassignment_throttling feature flag enabled, there have been errors in the WriteAheadLog DB health status indicator
The error has only occurred in our reassignment service (exported log):
We use this indicator to throttle placeholder user record reassignment service if/when necessary. Initial investigation indicates we are not passing the connection argument to the execute method correctly, or perhaps not setting the context up properly.
From Slack (90 days):
The
WriteAheadLogcallsexecuteon theconnection, which is derived from thecontexthttps://gitlab.com/gitlab-org/gitlab/-/blob/df310bc767a0e84b7042af056b2b6e81a2850a8e/lib/gitlab/database/health_status/indicators/write_ahead_log.rb#L63
