Skip to content

Lambda Kinesis EFO event source mapping stops invoking while Enabled/OK, consumer ACTIVE, no errors

0

Symptoms

  • Invocations dropped from steady traffic to zero, with 0 errors and 0 throttles. Records kept arriving on the streams.
  • The mappings kept reporting State: Enabled and LastProcessingResult: OK.
  • The stream consumers stayed ACTIVE, with unchanged ARNs.
  • On the first mapping, the consumer's SubscribeToShard calls (normally every 5 minutes) stopped after the last renewal. There were no further attempts at all: no successes, failures or RateExceeded.

What we tried

  • Disabling and re-enabling the first mapping had no effect.
  • Disabling the EFO mapping and creating a standard (non-EFO) mapping on the stream ARN with AT_TIMESTAMP restored processing within minutes. We did this for both.

Ruled out (first mapping)

  • CloudTrail shows no Kinesis or Lambda write calls by any principal before the stall.
  • No deployments in the preceding hours, and no function errors, timeouts or concurrency limits.

Questions

  1. Is there a known failure mode where the EFO poller stops renewing shard subscriptions without an error or state change on the mapping?
  2. Why wouldn't disabling and re-enabling the mapping restart it?
  3. Is there a metric or API field that shows this state, given that the mapping reports OK?
  4. Is standard GetRecords recommended over EFO for critical consumers?

asked a month ago135 views

2 Answers
1

Hello.

Is there a known failure mode where the EFO poller stops renewing shard subscriptions without an error or state change on the mapping?

Given that SubscribeToShard—which normally executes approximately every five minutes—suddenly stopped being called while writes to Kinesis continued, I suspect that the read process for the event source managed by Lambda may have halted.
I have used Kinesis EFO several times myself, but I have never encountered a problem like the one you are describing.

Is there a metric or API field that shows this state, given that the mapping reports OK?

AWS documentation states that SubscribeToShard.Success is emitted at least once every five minutes.
I believe this can be used to monitor for successful subscription renewals.
https://docs.aws.amazon.com/streams/latest/dev/monitoring-with-cloudwatch.html

Is standard GetRecords recommended over EFO for critical consumers?

I do not think it is appropriate to conclude that EFO should not be used for critical workloads based solely on this incident.
Since this could be a temporary issue, I believe an investigation by AWS Support is necessary.

EXPERT

answered a month ago

EXPERT

reviewed a month ago

0

Based on the symptoms you've described, this appears to be an internal issue with the Enhanced Fan-Out (EFO) event source mapping's subscription renewal mechanism. While I don't have visibility into a documented failure mode that matches your exact scenario, I can address your questions:

  1. Silent subscription renewal failure: The behavior you're seeing—where SubscribeToShard renewals stop without any error signals, state changes, or CloudWatch metrics—suggests an internal polling mechanism issue. Normally, EFO consumers renew their shard subscriptions every 5 minutes, and the complete absence of renewal attempts (no successes, failures, or rate limit errors) indicates the poller itself may have stopped rather than encountering a retriable error.

  2. Why disable/re-enable didn't work: This is unusual. Typically, disabling and re-enabling an event source mapping should reinitialize the polling infrastructure. The fact that it didn't resolve the issue suggests the underlying consumer registration or internal state may have been in an inconsistent state that persisted across the disable/enable cycle.

  3. Observability gap: Unfortunately, there isn't a standard CloudWatch metric or API field that directly exposes the internal health of the EFO subscription renewal process. The mapping reports State: Enabled and LastProcessingResult: OK because these reflect the configuration state and the last successful processing attempt, not the real-time health of the subscription mechanism. The consumer showing ACTIVE status similarly reflects registration state rather than active data flow.

  4. EFO vs. standard polling: EFO is generally recommended for critical, low-latency use cases because it provides dedicated throughput per consumer and push-based delivery, avoiding the 2 MB/sec per-shard limit of standard GetRecords polling. However, your experience highlights an important consideration: standard polling may offer more predictable behavior in certain edge cases. For mission-critical workloads, consider:

  • Implementing comprehensive monitoring that tracks not just invocation counts and errors, but also the age of records being processed
  • Setting up alarms on IteratorAge or custom metrics that detect processing stalls
  • Having a documented runbook for quickly switching to standard polling if EFO exhibits issues
  • Testing your failover procedure in advance

Given that creating a new standard mapping immediately restored processing, this strongly suggests the issue was isolated to the EFO subscription mechanism rather than your function, stream, or permissions. I'd recommend opening a support case with AWS to investigate the root cause, as this behavior—where the mapping appears healthy but stops processing—represents a gap in observability and resilience that AWS engineering should examine.
Sources
Troubleshoot event source mapping issues in Lambda - AWS Lambda
AWS Lambda Provisioned Mode for Amazon SQS event source mappings now supports up to 10,000 event pollers - AWS
Event source mappings with durable functions - AWS Lambda
Building a real-time ICU patient analytics pipeline with AWS Lambda event source mapping | AWS Big Data Blog

answered a month ago

  • Thanks. To clarify, we're looking for confirmation from the Lambda team on whether this is a known EFO poller issue, and whether disable/enable is expected to reinitialize the poller. Any AWS engineers who've seen this, we'd appreciate input.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.