HubSpot Engineering

Latest posts

Writing lately

HubSpot Incident Report: September 8, 2026

In this post

On September 8, 2026, between 11:40 AM and 12:19 PM EDT (UTC-4), HubSpot customers in the North America region experienced an outage across HubSpot tooling. No data was lost during this incident. After completing a thorough analysis of this incident, here is a detailed account of what happened, why it occurred, and the steps we are taking to prevent similar issues in the future.

#What Happened

On the morning of Tuesday, September 8th, a job that updates our permissions cache, which is used to determine user access to specific HubSpot features, began to fail. This resulted in our permissions cache exceeding a staleness threshold that caused the permissions service to fall back to querying the underlying database for every authorization check.

Because these database queries are substantially slower than cache lookups, the permissions service had to process more requests in parallel, eventually exhausting thread pools on the service.

Our internal reliability automation alerted the engineering team to the elevated error rates within a minute of the impact starting. An internal incident was declared 4 minutes thereafter. However, the root cause was not obvious. The impact was mitigated when engineers discovered the failing permissions cache update job and manually increased the cache staleness threshold 39 minutes after impact started. The background job was subsequently fixed and restarted, which cleared the backlog and restored normal operations.

#Customer Impact

Customers in the North America region attempting to use HubSpot tools experienced failures for approximately 39 minutes. The disruptions included CRM, Help Desk, Inbox, Workflows, and dashboards.

#Technical Impact Details

Safeguards on our database systems kill queries that exceed a large row count. Leading up to the outage, the job that updates the permissions cache was impacted by this query guardrail, which caused the job to fail. With the job failing, the cache quickly reached its 10 minute staleness threshold, at which point calls fell back to the database.

This then created a chain reaction of resource pressure:

  • Database Fall-Through: Because the cache was deemed stale, the permissions service routed all access checks directly to the system of record.
  • Resource Exhaustion: The direct database queries were significantly slower. This caused the permissions service to handle more requests in parallel, rapidly exhausting its thread pools and causing requests to fail, even after the service was scaled up.

#Timeline of Events (September 8, 2026)

  • 11:40 AM EDT: Data in the permissions cache becomes stale. The issue starts when the permissions service faces resource exhaustion from querying the database directly.
  • 11:41 AM EDT: Issue is detected when Reliability automation alerts the engineering team to elevated error rates. The team begins investigating.
  • 11:45 AM EDT: An internal incident is automatically declared and escalated.
  • 12:16 PM EDT: Engineering team identifies the stalled cache-update job as the root cause.
  • 12:19 PM EDT: Engineering team increases the cache staleness threshold, restoring cache access and mitigating customer impact. The engineering team changes the background job to handle the large cache update, clearing the backlog and ensuring the job will be able to handle cache updates as usual going forward.
  • 12:20 PM EDT: Permissions service returns to normal. The internal incident is closed.

#What We're Doing to Improve

  1. Avoiding Unbounded Work: We have updated the cache-update job to fetch records using pagination (breaking the dataset into smaller, manageable batches). This eliminates the risk of hitting hard result-set limits on the database, which was the direct trigger for this incident.
  2. Systematic Code Auditing: We have conducted a comprehensive audit of our critical services to identify any unbounded database query patterns. We are working with teams to remediate these occurrences.
  3. Cache Fallback Strategy Overhaul: We significantly simplified permissions caching by removing database fallbacks and relying exclusively on a highly available read cache. We keep the cache in sync with all permission changes and trigger alerts and incidents as soon as data staleness exceeds the acceptable threshold.
  4. Enhanced Diagnostics and Alerting: We are deploying new, targeted alerts to monitor for cache staleness and failures in background publishing jobs. This will ensure our engineers are immediately notified if a cache ceases to update, drastically reducing the time required to diagnose similar issues in the future.

#Our Commitment to Trust

We sincerely apologize for the disruption this incident caused to your day. At HubSpot, we continue to learn from every incident and are committed to applying these learnings to strengthen the resilience of the HubSpot platform.

We are also committed to building additional AI-enabled tooling to identify these failure modes proactively or before they have widespread customer impact.

Newsletter

For Agents

View Markdown

Share

More posts

Incident Report: August 11, 2026

A change to a service's team-ownership metadata cut its new instances off from a cache, and a rollback restarted every instance, so CRM record pages failed for 18 minutes on August 11. What happened, and what we're changing.

HubSpot Incident Report: July 22, 2026

Customers in Europe faced CRM access issues on July 22 due to a configuration change. Learn about the incident, its impact, and our commitment to improved reliability.

HubSpot Incident Report: February 25, 2026

HubSpot faced a service disruption on February 25, 2026, impacting access to specific workflows. Learn about the incident, its causes, and our commitment to improvement.