Bird
0
0

A Kafka configuration has log.segment.bytes=0. What is the problem?

medium📝 Debug Q7 of 15
Kafka - Performance Tuning
A Kafka configuration has log.segment.bytes=0. What is the problem?
AInvalid segment size disables log segment creation
BSegments will roll over every 0 bytes, causing errors
CKafka will use default segment size ignoring 0
DThis setting disables disk I/O threads
Step-by-Step Solution
Solution:
  1. Step 1: Understand zero segment size effect

    Setting segment size to 0 is invalid and prevents proper log segment creation.
  2. Step 2: Evaluate other options

    Rolling over every 0 bytes is impossible, Kafka does not silently ignore zero, and disk I/O threads are unrelated.
  3. Final Answer:

    Invalid segment size disables log segment creation -> Option A
  4. Quick Check:

    log.segment.bytes=0 is invalid and breaks log segments [OK]
Quick Trick: Segment size must be positive non-zero [OK]
Common Mistakes:
  • Assuming Kafka uses default silently
  • Thinking zero means immediate rollover
  • Confusing segment size with thread count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes