Bird
Raised Fist0

You notice the lag value is always zero but consumers are not processing messages. What could be the problem?

medium📝 Troubleshoot Q7 of Q15
Kafka - Monitoring and Operations
You notice the lag value is always zero but consumers are not processing messages. What could be the problem?
AKafka topic has no messages
BConsumers have auto-commit disabled and have not committed offsets
CConsumer group ID is incorrect
DKafka broker is overloaded
Step-by-Step Solution
Solution:
  1. Step 1: Understand zero lag with no processing

    If consumers do not commit offsets (auto-commit disabled), lag may show zero because Kafka thinks no messages are consumed yet.
  2. Step 2: Exclude other causes

    Topic with no messages means no lag but also no processing needed; wrong group ID would show no data; broker overload causes delays but not zero lag.
  3. Final Answer:

    Consumers have auto-commit disabled and have not committed offsets -> Option B
  4. Quick Check:

    Zero lag but no processing = no offset commits [OK]
Quick Trick: Lag zero can mean no offset commits [OK]
Common Mistakes:
MISTAKES
  • Assuming zero lag means consumers are working
  • Confusing group ID errors with lag display
  • Blaming broker overload for zero lag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes