2022-01-18: autcomplete_sources returning 500

Current Status

Because of a change in database columns, rails' column cache was stale and thus, for a subset of requests, used this stale cache, causing this error.

We have rotated out all the pods of the web fleet to ensure the cache is fresh on all rails processes.

Summary for CMOC notice / Exec summary:

  1. Customer Impact: ServiceWeb
  2. Customer Impact Duration: 19:25 UTC - 20:25 UTC (60 minutes)
  3. Current state: See Incident::<state> label
  4. Root cause: RootCauseSoftware-Change / Database migration causing stale caches in rails

Timeline

Recent Events (available internally only):

  • Deployments
  • Feature Flag Changes
  • Infrastructure Configurations
  • GCP Events (e.g. host failure)

All times UTC.

2022-01-18

  • 19:01 - First occurrences of the SQL error began appearing in Kibana (main stage)
  • 19:25 - @bwill declares incident in Slack.
  • 20:19 - Last occurrence of the SQL error occurred (main stage)
  • 20:25 - all pods have been rotated

Takeaways

  • We can restart k8s pods without noticeable downtime, without too many complications. See https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14987 to have this procedure documented.

Corrective Actions

Corrective actions should be put here as soon as an incident is mitigated, ensure that all corrective actions mentioned in the notes below are included.

  • https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14987
  • Create SLI / SLO for the autocomplete endpoints in the runbooks https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/15105

Note: In some cases we need to redact information from public view. We only do this in a limited number of documented cases. This might include the summary, timeline or any other bits of information, laid out in out handbook page. Any of this confidential data will be in a linked issue, only visible internally. By default, all information we can share, will be public, in accordance to our transparency value.


Click to expand or collapse the Incident Review section.

Incident Review

  • Ensure that the exec summary is completed at the top of the incident issue, the timeline is updated and relevant graphs are included in the summary
  • If there are any corrective action items mentioned in the notes on the incident, ensure they are listed in the "Corrective Action" section
  • Fill out relevant sections below or link to the meeting review notes that cover these topics

Customer Impact

  1. Who was impacted by this incident? (i.e. external customers, internal customers)
    1. ...
  2. What was the customer experience during the incident? (i.e. preventing them from doing X, incorrect display of Y, ...)
    1. ...
  3. How many customers were affected?
    1. ...
  4. If a precise customer impact number is unknown, what is the estimated impact (number and ratio of failed requests, amount of traffic drop, ...)?
    1. ...

What were the root causes?

  • ...

Incident Response Analysis

  1. How was the incident detected?
    1. ...
  2. How could detection time be improved?
    1. ...
  3. How was the root cause diagnosed?
    1. ...
  4. How could time to diagnosis be improved?
    1. ...
  5. How did we reach the point where we knew how to mitigate the impact?
    1. ...
  6. How could time to mitigation be improved?
    1. ...
  7. What went well?
    1. ...

Post Incident Analysis

  1. Did we have other events in the past with the same root cause?
    1. ...
  2. Do we have existing backlog items that would've prevented or greatly reduced the impact of this incident?
    1. ...
  3. Was this incident triggered by a change (deployment of code or change to infrastructure)? If yes, link the issue.
    1. ...

What went well?

  • ...

Guidelines

  • Blameless RCA Guideline

Resources

  1. If the Situation Zoom room was utilised, recording will be automatically uploaded to Incident room Google Drive folder (private)
Edited Feb 01, 2022 by Rehab
Assignee Loading
Time tracking Loading